summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-06 20:30:27 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-06 20:30:27 +0100
commit7792b7117bda76873ad8c5339d7441191c132703 (patch)
tree7593f5bc9a8361a9487f6e34f2f0a6a07e3f5382 /Makefile
parent97e58519bc946daabcadc531510497c3598961a1 (diff)
take -pie out of macos hardening build flags
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7ed552c..15828bb 100644
--- a/Makefile
+++ b/Makefile
@@ -45,10 +45,7 @@ CFLAGS?=-O3
45OT_CFLAGS+=-Wall -Wextra -Wwrite-strings -pipe -pthread 45OT_CFLAGS+=-Wall -Wextra -Wwrite-strings -pipe -pthread
46 46
47HARDENING=-fstack-protector-strong -fPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 47HARDENING=-fstack-protector-strong -fPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
48HARDENING_LD=-pie 48HARDENING_LD!= case `uname -s` in Darwin) ;; *) printf %s "-pie -Wl,-z,relro,-z,now" ;; esac
49# Full RELRO on every linker that takes it, which is all but Apple's. See DESIGN.
50RELRO_LD!= case `uname -s` in Darwin) ;; *) printf %s -Wl,-z,relro,-z,now ;; esac
51HARDENING_LD+=$(RELRO_LD)
52OT_LDFLAGS+=-pthread 49OT_LDFLAGS+=-pthread
53 50
54OPTS_debug=-D_DEBUG -g -ggdb 51OPTS_debug=-D_DEBUG -g -ggdb