mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
commit
123785cf52
26
qtox.pro
26
qtox.pro
|
@ -46,12 +46,19 @@ CONFIG += silent
|
||||||
|
|
||||||
# Hardening flags (ASLR, warnings, etc)
|
# Hardening flags (ASLR, warnings, etc)
|
||||||
# TODO: add `-Werror` to hardening flags once all warnings are fixed
|
# TODO: add `-Werror` to hardening flags once all warnings are fixed
|
||||||
QMAKE_CXXFLAGS += -fstack-protector-all \
|
win32 {
|
||||||
-fPIE \
|
QMAKE_CXXFLAGS += -fPIE \
|
||||||
-Wstack-protector \
|
-Wstrict-overflow \
|
||||||
-Wstrict-overflow \
|
-Wstrict-aliasing
|
||||||
-Wstrict-aliasing \
|
} else {
|
||||||
--param ssp-buffer-size=1
|
QMAKE_CXXFLAGS += -fstack-protector-all \
|
||||||
|
-fPIE \
|
||||||
|
-Wstack-protector \
|
||||||
|
-Wstrict-overflow \
|
||||||
|
-Wstrict-aliasing \
|
||||||
|
--param ssp-buffer-size=1
|
||||||
|
}
|
||||||
|
|
||||||
# osx & windows cannot into security (build on it fails with those enabled)
|
# osx & windows cannot into security (build on it fails with those enabled)
|
||||||
unix:!macx {
|
unix:!macx {
|
||||||
QMAKE_LFLAGS += -Wl,-z,now -Wl,-z,relro
|
QMAKE_LFLAGS += -Wl,-z,now -Wl,-z,relro
|
||||||
|
@ -273,6 +280,13 @@ win32 {
|
||||||
./libs/lib/libopus.a \
|
./libs/lib/libopus.a \
|
||||||
./libs/lib/libtoxencryptsave.a \
|
./libs/lib/libtoxencryptsave.a \
|
||||||
./libs/lib/libtoxcore.a \
|
./libs/lib/libtoxcore.a \
|
||||||
|
./libs/lib/libtoxgroup.a \
|
||||||
|
./libs/lib/libtoxmessenger.a \
|
||||||
|
./libs/lib/libtoxfriends.a \
|
||||||
|
./libs/lib/libtoxnetcrypto.a \
|
||||||
|
./libs/lib/libtoxdht.a \
|
||||||
|
./libs/lib/libtoxnetwork.a \
|
||||||
|
./libs/lib/libtoxcrypto.a \
|
||||||
./libs/lib/libopenal.a \
|
./libs/lib/libopenal.a \
|
||||||
./libs/lib/libsodium.a \
|
./libs/lib/libsodium.a \
|
||||||
./libs/lib/libavdevice.a \
|
./libs/lib/libavdevice.a \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user