about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgco <gco@jazzhaiku.com>2022-06-10 20:08:40 -0700
committerLeah Neukirchen <leah@vuxu.org>2022-06-18 23:05:26 +0200
commit877569a6f3810a3ef8672bd9c056f313e77d2ea1 (patch)
treede92793737eca220373d1e99893e131f60114557
parentbbc754e2a164cebb1a67a1a12bd3ab338cb0beba (diff)
downloadmblaze-877569a6f3810a3ef8672bd9c056f313e77d2ea1.tar.gz
mblaze-877569a6f3810a3ef8672bd9c056f313e77d2ea1.tar.xz
mblaze-877569a6f3810a3ef8672bd9c056f313e77d2ea1.zip
if -fstack-protector-strong is used, it needs to be specified for both compiling and linking
Closes: #229 [via git-merge-pr]
-rw-r--r--GNUmakefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 07a0b1a..c90e938 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,5 +1,6 @@
 CFLAGS?=-g -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2
 override CFLAGS:=-Wall -Wno-switch -Wextra $(CFLAGS)
+LDFLAGS?=-fstack-protector-strong
 LDLIBS=-lrt
 
 OS := $(shell uname)