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:
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user