From e63430adb930c151210919a106a0851ed58c5e81 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 28 Feb 2026 22:15:32 +0100 Subject: [PATCH] compile with -fPIC instead of -fPIE CodeQL error: /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1287:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (and not with -fPIE)." 1287 | # error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\ | ^~~~~ --- Makefile.defs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.defs b/Makefile.defs index 4a80eea78..cffe9eee0 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -176,8 +176,8 @@ ifneq ($(NOHARDENING),1) ifeq ($(ARCH),x86_64) CFLAGS += -fcf-protection=full endif - DEFCFLAGS += -fPIE - DEFCXXFLAGS += -fPIE + DEFCFLAGS += -fPIC + DEFCXXFLAGS += -fPIC DEFLDFLAGS += -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -pie endif endif