From: Evan Miller Date: Mon, 6 Dec 2021 14:58:28 +0000 (-0500) Subject: Confirm that -Wl,-pie links on Darwin X-Git-Tag: v2.4.1~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F303%2Fhead;p=thirdparty%2Fcups.git Confirm that -Wl,-pie links on Darwin The flag compiles but fails to link when the deployment target is OS X 10.4. --- diff --git a/config-scripts/cups-compiler.m4 b/config-scripts/cups-compiler.m4 index 28ec131fa6..bb8c022937 100644 --- a/config-scripts/cups-compiler.m4 +++ b/config-scripts/cups-compiler.m4 @@ -156,7 +156,7 @@ AS_IF([test -n "$GCC"], [ OLDCFLAGS="$CFLAGS" AS_CASE(["$host_os_name"], [darwin*], [ CFLAGS="$CFLAGS -fPIE -Wl,-pie" - AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [ + AC_LINK_IFELSE([AC_LANG_PROGRAM()], [ PIEFLAGS="-fPIE -Wl,-pie" AC_MSG_RESULT([yes]) ], [