diff options
author | Jude Taylor <me@jude.bio> | 2018-03-20 15:26:00 -0700 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2018-03-20 15:26:00 -0700 |
commit | 0458c7b88557e6d11ad4b748dc7741e7e0d31ee6 (patch) | |
tree | 070b2c26bc4d210d8da27568c46a71784d38a1c4 /pkgs/development | |
parent | c79cc60e643ecace48ca207d39fc61b04126e572 (diff) | |
download | nixlib-0458c7b88557e6d11ad4b748dc7741e7e0d31ee6.tar nixlib-0458c7b88557e6d11ad4b748dc7741e7e0d31ee6.tar.gz nixlib-0458c7b88557e6d11ad4b748dc7741e7e0d31ee6.tar.bz2 nixlib-0458c7b88557e6d11ad4b748dc7741e7e0d31ee6.tar.lz nixlib-0458c7b88557e6d11ad4b748dc7741e7e0d31ee6.tar.xz nixlib-0458c7b88557e6d11ad4b748dc7741e7e0d31ee6.tar.zst nixlib-0458c7b88557e6d11ad4b748dc7741e7e0d31ee6.zip |
fix static libs on darwin
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/haskell-modules/generic-builder.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 1a788ae642ea..60a4e28609e5 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -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: # |