summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:03 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-08 12:34:03 +0000
commitd299cb7cb9dda831adc4bec06fbaedffd4971b92 (patch)
tree0550e6c3b02f50f3d52e1f5c8c4d53ae0706892b
parent9358ede0e510fe25cf26fd6cc349395ac8bc8558 (diff)
downloadmdevd-d299cb7cb9dda831adc4bec06fbaedffd4971b92.tar.gz
mdevd-d299cb7cb9dda831adc4bec06fbaedffd4971b92.tar.xz
mdevd-d299cb7cb9dda831adc4bec06fbaedffd4971b92.zip
noexecstack only works in LDFLAGS
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 93fba60..3fb5aa5 100755
--- a/configure
+++ b/configure
@@ -337,7 +337,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
@@ -347,6 +346,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}"