haskell generic builder: Do the links
dance only if shared is enabled.
This commit is contained in:
parent
a4d5dbd45d
commit
affeb0cb80
@ -284,7 +284,7 @@ stdenv.mkDerivation ({
|
|||||||
# only use the links hack if we're actually building dylibs. otherwise, the
|
# only use the links hack if we're actually building dylibs. otherwise, the
|
||||||
# "dynamic-library-dirs" point to nonexistent paths, and the ln command becomes
|
# "dynamic-library-dirs" point to nonexistent paths, and the ln command becomes
|
||||||
# "ln -s $out/lib/links", which tries to recreate the links dir and fails
|
# "ln -s $out/lib/links", which tries to recreate the links dir and fails
|
||||||
+ (optionalString (stdenv.isDarwin && enableSharedLibraries) ''
|
+ (optionalString (stdenv.isDarwin && (enableSharedLibraries || enableSharedExecutables)) ''
|
||||||
# Work around a limit in the macOS Sierra linker on the number of paths
|
# Work around a limit in the macOS Sierra linker on the number of paths
|
||||||
# referenced by any one dynamic library:
|
# referenced by any one dynamic library:
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user