mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-28 18:56:32 +02:00
monero-wallet-gui.pro: use hardening flags
This commit is contained in:
parent
a44d15a7e9
commit
8b97eed79c
@ -116,6 +116,8 @@ android {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
QMAKE_CXXFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong
|
||||||
|
QMAKE_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong
|
||||||
|
|
||||||
ios {
|
ios {
|
||||||
message("Host is IOS")
|
message("Host is IOS")
|
||||||
@ -236,6 +238,7 @@ win32 {
|
|||||||
message("Target is 64bit")
|
message("Target is 64bit")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -Wl,--dynamicbase -Wl,--nxcompat
|
||||||
}
|
}
|
||||||
|
|
||||||
linux {
|
linux {
|
||||||
@ -276,6 +279,8 @@ linux {
|
|||||||
message(Building with libunwind)
|
message(Building with libunwind)
|
||||||
LIBS += -Wl,-Bdynamic -lunwind
|
LIBS += -Wl,-Bdynamic -lunwind
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack
|
||||||
}
|
}
|
||||||
|
|
||||||
macx {
|
macx {
|
||||||
@ -300,6 +305,7 @@ macx {
|
|||||||
-lcrypto \
|
-lcrypto \
|
||||||
-ldl
|
-ldl
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user