diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-05-31 14:09:34 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-05-31 15:37:25 +0200 |
| commit | fae92a04cdfd5ebe8e07865446732b0287f4553a (patch) | |
| tree | 8b505f958be45f0eff5ce5bec869402714ede975 /configure | |
| parent | 2599e5c9be9fa8ef12ff92cff85f0c72be2b1aeb (diff) | |
| download | vis-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-x | configure | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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... " |
