From: Paul P Komkoff Jr Date: Wed, 24 Sep 2008 15:42:35 +0000 (+0100) Subject: [build] Fix --enable-pie so it can actually be disabled X-Git-Tag: frr-2.0-rc1~2358 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0e9de56d5e5ee44768102f7955e046f4046ef0b7;p=matthieu%2Ffrr.git [build] Fix --enable-pie so it can actually be disabled Signed-off-by: Paul Jakma --- diff --git a/configure.ac b/configure.ac index 547b68666e..6d824f54ba 100755 --- a/configure.ac +++ b/configure.ac @@ -1390,10 +1390,8 @@ CONFDATE=`date '+%Y%m%d'` AC_SUBST(CONFDATE) dnl Conditionally enable PIE support for GNU toolchains. -enable_pie=yes - AC_ARG_ENABLE(pie, AS_HELP_STRING([--disable-pie], [Do not build tools as a Position Independent Executables])) -if test "$enable_pie" = "yes"; then +if test "$enable_pie" != "no"; then AC_CACHE_CHECK([whether $CC accepts PIE flags], [ap_cv_cc_pie], [ save_CFLAGS=$CFLAGS save_LDFLAGS=$LDFLAGS