summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:33:53 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:33:53 +0000
commit1b987c58b1924e8fb9de3b7651d3bb9e24797a33 (patch)
tree48acefe060f7526b6e4d7590a477d2cbbd785e2f /configure
parent328fb7f24e27193d63e1f6015b21024a4fcf0d76 (diff)
downloadnsss-1b987c58b1924e8fb9de3b7651d3bb9e24797a33.tar.xz
noexecstack only works in LDFLAGS
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index f9c65cc..5aa8ba9 100755
--- a/configure
+++ b/configure
@@ -334,7 +334,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
@@ -344,6 +343,7 @@ tryflag CFLAGS_AUTO -fdata-sections
tryldflag LDFLAGS_AUTO -Wl,--sort-section=alignment
tryldflag LDFLAGS_AUTO -Wl,--sort-common
+tryldflag LDFLAGS_AUTO -Wl,-z,noexecstack
CPPFLAGS_AUTO="${CPPFLAGS_AUTO}${addincpath}"