summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:38 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:38 +0000
commit301470c6b3e06203c30ac3ec8bb54c2f7879d4c1 (patch)
tree34c262199ec577fd370f0af9f47210547bb0907e
parent24e9a12b027ff8bf946ed2f8a4a96aafef339490 (diff)
downloadbcnm-301470c6b3e06203c30ac3ec8bb54c2f7879d4c1.tar.xz
noexecstack only works in LDFLAGS
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 33f9da7..f4cc899 100755
--- a/configure
+++ b/configure
@@ -336,7 +336,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
@@ -346,6 +345,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}"