From fae92a04cdfd5ebe8e07865446732b0287f4553a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 31 May 2017 14:09:34 +0200 Subject: build: cleanup self contained executable Set $PATH and $TERMINFO_DIRS environment variables, use chdir(2) to simplify extraction logic, improve error handling. --- configure | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'configure') 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... " -- cgit v1.2.3