Browse Source

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

windows & osx fail to compile with them.
reviewable/pr3994/r1
Zetok Zalbavar 9 years ago
parent
commit
0a1a781249
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 4
      qtox.pro

4
qtox.pro

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

Loading…
Cancel
Save