Navigation Menu

Skip to content

Commit

Permalink
fix static libs on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Jude Taylor committed Mar 20, 2018
1 parent c79cc60 commit 0458c7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/haskell-modules/generic-builder.nix
Expand Up @@ -244,7 +244,11 @@ stdenv.mkDerivation ({
configureFlags+=" --extra-lib-dirs=$p/lib"
fi
done
'' + (optionalString stdenv.isDarwin ''
''
# 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
# "ln -s $out/lib/links", which tries to recreate the links dir and fails
+ (optionalString (stdenv.isDarwin && enableSharedLibraries) ''
# Work around a limit in the macOS Sierra linker on the number of paths
# referenced by any one dynamic library:
#
Expand Down

0 comments on commit 0458c7b

Please sign in to comment.