about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-09 15:05:21 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-09 15:05:21 +0000
commit480d9503263fa4e8f86ea6f8ee8cb373c8607e5b (patch)
treed567fbc066d8846f21ee831fce02cbafc62dcf0e /configure
parent5c0a576fdfc382350f90edd5483ef2fed7dcf90f (diff)
downloadskalibs-480d9503263fa4e8f86ea6f8ee8cb373c8607e5b.tar.gz
skalibs-480d9503263fa4e8f86ea6f8ee8cb373c8607e5b.tar.xz
skalibs-480d9503263fa4e8f86ea6f8ee8cb373c8607e5b.zip
No need for noexecstack, but the strip is too greedy
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 7b6ab34..2804a2f 100755
--- a/configure
+++ b/configure
@@ -560,7 +560,6 @@ tryflag CFLAGS -fomit-frame-pointer
 tryflag CFLAGS_AUTO -fno-exceptions
 tryflag CFLAGS_AUTO -fno-unwind-tables
 tryflag CFLAGS_AUTO -fno-asynchronous-unwind-tables
-tryflag CFLAGS_AUTO -Wa,--noexecstack
 tryflag CPPFLAGS_AUTO -Werror=implicit-function-declaration
 tryflag CPPFLAGS_AUTO -Werror=implicit-int
 tryflag CPPFLAGS_AUTO -Werror=pointer-sign
@@ -569,6 +568,8 @@ tryflag CPPFLAGS_AUTO -Wno-unused-value
 tryflag CPPFLAGS_AUTO -Wno-parentheses
 tryflag CFLAGS_AUTO -ffunction-sections
 tryflag CFLAGS_AUTO -fdata-sections
+tryldflag LDFLAGS_SHARED -nostartfiles
+tryldflag LDFLAGS_AUTO -Wl,--as-needed
 tryldflag LDFLAGS_AUTO -Wl,--sort-section=alignment
 tryldflag LDFLAGS_AUTO -Wl,--sort-common
 if $shared ; then