From 86e0a4bae1072caeb9ea92cb6524aa4a48ea2eab Mon Sep 17 00:00:00 2001 From: dzaima Date: Tue, 17 Jan 2023 01:38:56 +0200 Subject: [PATCH] makefile: default to -fPIE on REPLXX=1 CXX may have different preferences on PIEness, we want to give it the option --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index fa81e83e..f17a1c43 100644 --- a/makefile +++ b/makefile @@ -100,6 +100,9 @@ ifeq ($(origin LD_LIBS),command line) i_LIBS_LD := $(LD_LIBS) custom = 1 endif +ifeq ($(REPLXX),1) + i_PIE += -fPIE +endif ifeq ($(origin PIE),command line) i_PIE := $(PIE) custom = 1