1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(build): use hardening linker flags only on Linux/*BSD

windows & osx fail to compile with them.
This commit is contained in:
Zetok Zalbavar 2016-12-20 05:27:27 +00:00
parent 9c3256386d
commit 0a1a781249
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -53,8 +53,8 @@ QMAKE_CXXFLAGS += -fstack-protector-all \
-Wstrict-overflow \
-Wstrict-aliasing \
--param ssp-buffer-size=1
# osx cannot into security (build on it fails with those enabled)
!macx {
# osx & windows cannot into security (build on it fails with those enabled)
unix:!macx {
QMAKE_LFLAGS += -Wl,-z,now -Wl,-z,relro
}