summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-02-24 19:48:33 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-02-24 19:48:33 +0000
commit1c0edb8dfb203aad8396d750a86c0ea675928e4b (patch)
tree771b232eb66444ae4a5773fb992fb933fbb50b23
parent08ee271b224ad551d0ab7d2d3d57ecd5b3a670d6 (diff)
downloadnsss-1c0edb8dfb203aad8396d750a86c0ea675928e4b.tar.gz
nsss-1c0edb8dfb203aad8396d750a86c0ea675928e4b.tar.xz
nsss-1c0edb8dfb203aad8396d750a86c0ea675928e4b.zip
Build everything PIC by default
-rwxr-xr-xconfigure15
1 files changed, 2 insertions, 13 deletions
diff --git a/configure b/configure
index 1080f58..de9f6fd 100755
--- a/configure
+++ b/configure
@@ -40,7 +40,7 @@ Optional features:
   --disable-static              do not build static libraries [enabled]
   --disable-allstatic           do not prefer linking against static libraries [enabled]
   --enable-static-libc          make entirely static binaries [disabled]
-  --enable-all-pic              build everything as PIC [enabled iff toolchain builds PIE]
+  --disable-all-pic             don't build executables or static libs as PIC [enabled]
   --enable-slashpackage[=ROOT]  assume /package installation at ROOT [disabled]
   --enable-absolute-paths       do not rely on PATH to access this package's binaries,
                                   hardcode absolute BINDIR/foobar paths instead [disabled]
@@ -145,7 +145,7 @@ sysdeps='$prefix/lib/skalibs/sysdeps'
 manualsysdeps=false
 shared=false
 static=true
-allpic=detect
+allpic=true
 slashpackage=false
 abspath=false
 sproot=
@@ -300,20 +300,9 @@ if [ "x$target" != "x$(cat $sysdeps/target)" ] ; then
   exit 1
 fi
 
-if test $allpic = detect ; then
-  echo "Checking whether we need to build everything as PIC..."
-  if $CC_AUTO $CPPFLAGS_AUTO $CPPFLAGS $CPPFLAGS_POST $CFLAGS_AUTO $CFLAGS $CFLAGS_POST -dM -E - < /dev/null | grep -qF __PIE__ ; then
-    allpic=true
-    echo "  ... yes"
-  else
-    allpic=false
-    echo "  ... no"
-  fi
-fi
 if $allpic ; then
   tryflag CFLAGS_AUTO -fPIC
 fi
-
 spawn_lib=$(cat $sysdeps/spawn.lib)
 socket_lib=$(cat $sysdeps/socket.lib)
 sysclock_lib=$(cat $sysdeps/sysclock.lib)