1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 06:53:54 +02:00

Fix host OS detection for darwin-specific linker flag

(cherry picked from commit d86d43c34c)
This commit is contained in:
Ryan Burns 2021-08-10 00:01:39 -07:00 committed by Alyssa Ross
parent 183f2cc395
commit ac2ca8d083
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -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?