]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Confirm that -Wl,-pie links on Darwin 303/head
authorEvan Miller <emmiller@gmail.com>
Mon, 6 Dec 2021 14:58:28 +0000 (09:58 -0500)
committerGitHub <noreply@github.com>
Mon, 6 Dec 2021 14:58:28 +0000 (09:58 -0500)
The flag compiles but fails to link when the deployment target is OS X 10.4.

config-scripts/cups-compiler.m4

index 28ec131fa6e8ae3c080fe54d5aa95b5341d82540..bb8c022937818ef2fc76cf3ab7f4f7357455e584 100644 (file)
@@ -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])
            ], [