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. "\
      |    ^~~~~
This commit is contained in:
Philippe Teuwen committed 2026-02-28 22:15:32 +01:00
1 parent 7911882530
commit e63430adb9
1 file changed
+2 -2
+2 -2
View File
@@ -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