mirror of
https://github.com/NixOS/nix
synced 2025-07-08 11:03:54 +02:00
Fix host OS detection for darwin-specific linker flag
(cherry picked from commit d86d43c34c
)
This commit is contained in:
parent
183f2cc395
commit
ac2ca8d083
1 changed files with 4 additions and 2 deletions
|
@ -294,9 +294,11 @@ AC_CHECK_FUNCS([strsignal posix_fallocate sysconf])
|
||||||
|
|
||||||
# This is needed if bzip2 is a static library, and the Nix libraries
|
# This is needed if bzip2 is a static library, and the Nix libraries
|
||||||
# are dynamic.
|
# are dynamic.
|
||||||
if test "$(uname)" = "Darwin"; then
|
case "${host_os}" in
|
||||||
|
darwin*)
|
||||||
LDFLAGS="-all_load $LDFLAGS"
|
LDFLAGS="-all_load $LDFLAGS"
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
# Do we have GNU tar?
|
# Do we have GNU tar?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue