From 7792b7117bda76873ad8c5339d7441191c132703 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 6 Nov 2026 20:30:27 +0100 Subject: take -pie out of macos hardening build flags --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7ed552c..15828bb 100644 --- a/Makefile +++ b/Makefile @@ -45,10 +45,7 @@ CFLAGS?=-O3 OT_CFLAGS+=-Wall -Wextra -Wwrite-strings -pipe -pthread HARDENING=-fstack-protector-strong -fPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -HARDENING_LD=-pie -# Full RELRO on every linker that takes it, which is all but Apple's. See DESIGN. -RELRO_LD!= case `uname -s` in Darwin) ;; *) printf %s -Wl,-z,relro,-z,now ;; esac -HARDENING_LD+=$(RELRO_LD) +HARDENING_LD!= case `uname -s` in Darwin) ;; *) printf %s "-pie -Wl,-z,relro,-z,now" ;; esac OT_LDFLAGS+=-pthread OPTS_debug=-D_DEBUG -g -ggdb -- cgit v1.3