summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-02-24 14:54:28 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-02-24 14:54:28 +0000
commit1d03235d0682e00b5cd4edaab0108ca755ab90af (patch)
tree9691a0a530f5b8fd15ce003c1593942b697d15c1 /configure
parentff9333d473adb4ae1de2d9323394073793627823 (diff)
downloadskalibs-1d03235d0682e00b5cd4edaab0108ca755ab90af.tar.xz
Build as PIC by default
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 2 insertions, 13 deletions
diff --git a/configure b/configure
index 984e77e..b70def5 100755
--- a/configure
+++ b/configure
@@ -34,7 +34,7 @@ Dependencies:
Optional features:
--disable-shared do not build shared libraries [enabled]
--disable-static do not build static libraries [enabled]
- --enable-all-pic build everything as PIC [enabled iff toolchain builds PIE]
+ --disable-all-pic do not build static libraries as PIC [enabled]
--enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled]
$package options:
@@ -235,7 +235,7 @@ sysdepdir='$prefix/lib/$package/sysdeps'
sysdeps=
shared=true
static=true
-allpic=detect
+allpic=true
slashpackage=false
ipv6=true
select=false
@@ -384,20 +384,9 @@ if test -z "$target" ; then
fi
echo " ... $target"
-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
-
tryflag CFLAGS_AUTO -std=c99
tryflag CFLAGS -fomit-frame-pointer
tryflag CFLAGS_AUTO -fno-exceptions