diff options
author | Patrick Mahoney <pat@polycrystal.org> | 2014-10-16 14:40:25 -0500 |
---|---|---|
committer | Patrick Mahoney <pat@polycrystal.org> | 2014-10-16 14:40:25 -0500 |
commit | 8edb10d31e2a7a0e393d845881549473f8518be6 (patch) | |
tree | 8d0c8303fe3b779dff1cb79ae7c9565867060700 /pkgs | |
parent | 287d6d5d3aef2fd8b7f394cf233810bb2f7da6e2 (diff) | |
download | nixlib-8edb10d31e2a7a0e393d845881549473f8518be6.tar nixlib-8edb10d31e2a7a0e393d845881549473f8518be6.tar.gz nixlib-8edb10d31e2a7a0e393d845881549473f8518be6.tar.bz2 nixlib-8edb10d31e2a7a0e393d845881549473f8518be6.tar.lz nixlib-8edb10d31e2a7a0e393d845881549473f8518be6.tar.xz nixlib-8edb10d31e2a7a0e393d845881549473f8518be6.tar.zst nixlib-8edb10d31e2a7a0e393d845881549473f8518be6.zip |
talloc: Fix linker flags on darwin.
Before this patch, building talloc on darwin (OS X 10.8.5) results in: gcc -dynamiclib -Wl,-search_paths_first -undefined error -o libtalloc.dylib.2.0.1 ./talloc.o ./libreplace/replace.o ./libreplace/snprintf.o ./libreplace/getpass.o ./libreplace/strptime.o -install_namelibtalloc.dylib.2 gcc: error: unrecognized command line option '-install_namelibtalloc.dylib.2' make: *** [libtalloc.dylib.2.0.1] Error 1 Setting SONAMEFLAG to either "-install_name " (note trailing space), or "-Wl,-install_name," results in a successful build. The latter seems more clear.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/talloc/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/talloc/default.nix b/pkgs/development/libraries/talloc/default.nix index 55ae69e6e643..a8975e29b4b3 100644 --- a/pkgs/development/libraries/talloc/default.nix +++ b/pkgs/development/libraries/talloc/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { # https://bugzilla.samba.org/show_bug.cgi?id=7000 postConfigure = if stdenv.isDarwin then '' - substituteInPlace "Makefile" --replace "SONAMEFLAG = #" "SONAMEFLAG = -install_name" + substituteInPlace "Makefile" --replace "SONAMEFLAG = #" "SONAMEFLAG = -Wl,-install_name," '' else ""; meta = { |