1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 15:13:55 +02:00

Merge pull request #5129 from alyssais/2.3-darwin-host-os

[2.3] Fix host OS detection for darwin-specific linker flag
This commit is contained in:
Domen Kožar 2021-08-13 10:14:36 +02:00 committed by GitHub
commit 015ca6a7a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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?