diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-06 20:30:27 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-06 20:30:27 +0100 |
| commit | 7792b7117bda76873ad8c5339d7441191c132703 (patch) | |
| tree | 7593f5bc9a8361a9487f6e34f2f0a6a07e3f5382 /Makefile | |
| parent | 97e58519bc946daabcadc531510497c3598961a1 (diff) | |
take -pie out of macos hardening build flags
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -45,10 +45,7 @@ CFLAGS?=-O3 | |||
| 45 | OT_CFLAGS+=-Wall -Wextra -Wwrite-strings -pipe -pthread | 45 | OT_CFLAGS+=-Wall -Wextra -Wwrite-strings -pipe -pthread |
| 46 | 46 | ||
| 47 | HARDENING=-fstack-protector-strong -fPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 | 47 | HARDENING=-fstack-protector-strong -fPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 |
| 48 | HARDENING_LD=-pie | 48 | HARDENING_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. | ||
| 50 | RELRO_LD!= case `uname -s` in Darwin) ;; *) printf %s -Wl,-z,relro,-z,now ;; esac | ||
| 51 | HARDENING_LD+=$(RELRO_LD) | ||
| 52 | OT_LDFLAGS+=-pthread | 49 | OT_LDFLAGS+=-pthread |
| 53 | 50 | ||
| 54 | OPTS_debug=-D_DEBUG -g -ggdb | 51 | OPTS_debug=-D_DEBUG -g -ggdb |
