From ac2ca8d083390152fa964993107ef93b5bd7079b Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Tue, 10 Aug 2021 00:01:39 -0700 Subject: [PATCH] Fix host OS detection for darwin-specific linker flag (cherry picked from commit d86d43c34cf8fcb68cdd67c581380aa21afe3ab6) --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b34e231c2..21c3a5ac1 100644 --- a/configure.ac +++ b/configure.ac @@ -294,9 +294,11 @@ AC_CHECK_FUNCS([strsignal posix_fallocate sysconf]) # This is needed if bzip2 is a static library, and the Nix libraries # are dynamic. -if test "$(uname)" = "Darwin"; then +case "${host_os}" in + darwin*) LDFLAGS="-all_load $LDFLAGS" -fi + ;; +esac # Do we have GNU tar?