aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-05-31 14:09:34 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-05-31 15:37:25 +0200
commitfae92a04cdfd5ebe8e07865446732b0287f4553a (patch)
tree8b505f958be45f0eff5ce5bec869402714ede975 /configure
parent2599e5c9be9fa8ef12ff92cff85f0c72be2b1aeb (diff)
downloadvis-fae92a04cdfd5ebe8e07865446732b0287f4553a.tar.gz
vis-fae92a04cdfd5ebe8e07865446732b0287f4553a.tar.xz
build: cleanup self contained executable
Set $PATH and $TERMINFO_DIRS environment variables, use chdir(2) to simplify extraction logic, improve error handling.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 1 insertions, 10 deletions
diff --git a/configure b/configure
index 56b204b..67f7dfd 100755
--- a/configure
+++ b/configure
@@ -137,7 +137,6 @@ case "$arg" in
--docdir=*) DOCDIR=${arg#*=} ;;
--mandir=*) MANDIR=${arg#*=} ;;
--environment-only) environmentonly=yes ;;
---static) static=yes ;;
--enable-help|--enable-help=yes) help=yes ;;
--disable-help|--enable-help=no) help=no ;;
--enable-curses|--enable-curses=yes) curses=yes ;;
@@ -245,15 +244,7 @@ tryflag CFLAGS -fPIE
tryflag CFLAGS_AUTO -fstack-protector-all
tryldflag LDFLAGS -Wl,-z,now
tryldflag LDFLAGS -Wl,-z,relro
-# in theory it should be perfectly fine to produce a staticically linked PIE
-# however in practice it is not yet properly supported by gcc:
-#
-# cc -fPIE -pie --static
-#
-# will always add a PT_INTERP referencing the dynamic loader/linker
-if test "$static" != "yes" || tryldflag LDFLAGS_AUTO -Wl,--no-dynamic-linker ; then
- tryldflag LDFLAGS_AUTO -pie
-fi
+tryldflag LDFLAGS_AUTO -pie
printf "creating config.mk... "