]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[build] Fix --enable-pie so it can actually be disabled
authorPaul P Komkoff Jr <i@stingr.net>
Wed, 24 Sep 2008 15:42:35 +0000 (16:42 +0100)
committerPaul Jakma <paul@quagga.net>
Wed, 24 Sep 2008 15:42:35 +0000 (16:42 +0100)
Signed-off-by: Paul Jakma <paul@quagga.net>
configure.ac

index 547b68666ec6e427ccdd820dea5e21cfe88ed3d6..6d824f54bae80f2498e15bf74e70703ac128b1bf 100755 (executable)
@@ -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