From bf18a34f9738b61e380f4071e41f59825b8f7028 Mon Sep 17 00:00:00 2001 From: Nathan Zadoks Date: Thu, 3 Mar 2016 14:45:11 +0100 Subject: [PATCH] musl: pass the correct syslibdir This fixes dynamic linking (the specfile contains the correct path, and the dynamic loader is symlinked in place) Fixes #8543 --- pkgs/os-specific/linux/musl/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/os-specific/linux/musl/default.nix b/pkgs/os-specific/linux/musl/default.nix index abe96e9b9ae6..a8055df92fde 100644 --- a/pkgs/os-specific/linux/musl/default.nix +++ b/pkgs/os-specific/linux/musl/default.nix @@ -11,6 +11,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + preConfigure = '' + configureFlagsArray+=("--syslibdir=$out/lib") + ''; + configureFlags = [ "--enable-shared" "--enable-static"