From: Todd C. Miller Date: Mon, 2 Jul 2012 15:19:07 +0000 (-0400) Subject: Only check for pie support when using gcc. X-Git-Tag: SUDO_1_7_10~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbb4ee68fe0dec951ffa42ede6133c29c28a5f04;p=sudo Only check for pie support when using gcc. --HG-- branch : 1.7 --- diff --git a/configure b/configure index 9ff8d9899..dd2edbe39 100755 --- a/configure +++ b/configure @@ -19860,7 +19860,7 @@ done fi -if test "$enable_pie" != "no"; then +if test "$enable_pie" != "no" -a -n "$GCC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; } if ${ax_cv_check_cflags___fPIE+:} false; then : diff --git a/configure.in b/configure.in index 53ed8919b..b59ad30a8 100644 --- a/configure.in +++ b/configure.in @@ -2997,7 +2997,7 @@ dnl dnl Check for PIE executable support if using gcc. dnl This test relies on AC_LANG_WERROR dnl -if test "$enable_pie" != "no"; then +if test "$enable_pie" != "no" -a -n "$GCC"; then AX_CHECK_COMPILE_FLAG([-fPIE], [ _CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fPIE"