From: Duncan Overbruck Date: Thu, 12 Nov 2020 17:02:11 +0000 (+0100) Subject: configure: don't set --no-as-needed on MacOSX while running checks X-Git-Tag: v6.8~10 X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=commitdiff_plain;h=049eedbf316fcc831a485f1fc53aa33035ba12da configure: don't set --no-as-needed on MacOSX while running checks --- diff --git a/configure b/configure index 94ded41..f8d351b 100755 --- a/configure +++ b/configure @@ -157,7 +157,11 @@ EOF # Add CPPFLAGS/CFLAGS/LDFLAGS to CC for testing features XCC="${CC:=cc} $CFLAGS $OS_CFLAGS $CPPFLAGS $LDFLAGS" # Make sure to disable --as-needed for CC tests. -XCC="$XCC -Wl,--no-as-needed" + +case "$OS" in + darwin) ;; + *) XCC="$XCC -Wl,--no-as-needed" ;; +esac check_func() { func="$1"; src="$2"; shift 2