fix -fPIC issues
This commit is contained in:
1 parent
340819e430
commit
6cdccfb2df
2 files changed
+9
-2
No files matched your search
+2
-2
@@ -185,8 +185,8 @@ ifneq ($(NOHARDENING),1)
|
|||||||
|
|
||||||
ifndef IS_WINDOWS
|
ifndef IS_WINDOWS
|
||||||
ifndef IS_DARWIN
|
ifndef IS_DARWIN
|
||||||
ifeq ($(ARCH),x86_64)
|
ifneq ($(findstring x86_64,$(shell $(CC) -dumpmachine 2>/dev/null)),)
|
||||||
CFLAGS += -fcf-protection=full
|
DEFCFLAGS += -fcf-protection=full
|
||||||
endif
|
endif
|
||||||
DEFCFLAGS += -fPIC
|
DEFCFLAGS += -fPIC
|
||||||
DEFCXXFLAGS += -fPIC
|
DEFCXXFLAGS += -fPIC
|
||||||
|
|||||||
@@ -548,6 +548,13 @@ ifeq ($(QT_FOUND),1)
|
|||||||
# On OSX Qt6 is claiming for a C++11 compiler (gnu++14 works too, but if nothing it fails)
|
# On OSX Qt6 is claiming for a C++11 compiler (gnu++14 works too, but if nothing it fails)
|
||||||
PM3CXXFLAGS += -std=c++11
|
PM3CXXFLAGS += -std=c++11
|
||||||
endif
|
endif
|
||||||
|
# Qt built with reduce-relocations needs -fPIC (not -fPIE), also when CFLAGS is overridden
|
||||||
|
ifndef IS_WINDOWS
|
||||||
|
ifndef IS_DARWIN
|
||||||
|
PM3CFLAGS += -fPIC
|
||||||
|
PM3CXXFLAGS += -fPIC
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PM3CXXFLAGS += -DHAVE_SNPRINTF
|
PM3CXXFLAGS += -DHAVE_SNPRINTF
|
||||||
|
|||||||
Reference in new issue
Block a user