git.iko.soy/typeable/nixpkgs
on master help sign in
haskell generic builder: Do the `links` dance only if shared is enabled.
commitaffeb0cb805f82bcc51e192a4c3bfe00f5f63fc9 authorMoritz Angermann <moritz.angermann@gmail.com> dateSat 17 Mar 2018, 14:42 (9 years ago) parenta4d5dbd
1 file changed+1−1
pkgs/development/haskell-modules/generic-builder.nix+1−1
pkgs/development/haskell-modules/generic-builder.nix+1−1
@@ -284,7 +284,7 @@ stdenv.mkDerivation ({
284284 # only use the links hack if we're actually building dylibs. otherwise, the
285285 # "dynamic-library-dirs" point to nonexistent paths, and the ln command becomes
286286 # "ln -s $out/lib/links", which tries to recreate the links dir and fails
287− + (optionalString (stdenv.isDarwin && enableSharedLibraries) ''
287+ + (optionalString (stdenv.isDarwin && (enableSharedLibraries || enableSharedExecutables)) ''
288288 # Work around a limit in the macOS Sierra linker on the number of paths
289289 # referenced by any one dynamic library:
290290 #