aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/sntp/harden/linux
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/sntp/harden/linux')
-rw-r--r--contrib/ntp/sntp/harden/linux4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ntp/sntp/harden/linux b/contrib/ntp/sntp/harden/linux
index db235446e1db..5f9c4e91f385 100644
--- a/contrib/ntp/sntp/harden/linux
+++ b/contrib/ntp/sntp/harden/linux
@@ -1,4 +1,4 @@
# generic linux hardening flags
-NTP_HARD_CFLAGS="-pie -fPIE -fPIC -fstack-protector-all -O1"
+NTP_HARD_CFLAGS="-fPIE -fPIC -fstack-protector-all -O1"
NTP_HARD_CPPFLAGS="-D_FORTIFY_SOURCE=2"
-NTP_HARD_LDFLAGS="-z relro -z now"
+NTP_HARD_LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"