]> granicus.if.org Git - sudo/commitdiff
Only check for pie support when using gcc.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Jul 2012 15:19:07 +0000 (11:19 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Jul 2012 15:19:07 +0000 (11:19 -0400)
--HG--
branch : 1.7

configure
configure.in

index 9ff8d9899906dfa9a221ecb45f56117d0c178273..dd2edbe394ff32be14a01a8d06a3418c77577404 100755 (executable)
--- 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 :
index 53ed8919bf6e74acd20d2bd36dac88268b8c76a6..b59ad30a8e9cbed94d1414ed071ce527d71cb963 100644 (file)
@@ -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"