Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: Jenkins Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tux3 committed Jan 2, 2017
1 parent e961904 commit debb6e9
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions qtox.pro
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,19 @@ CONFIG += silent

# Hardening flags (ASLR, warnings, etc)
# TODO: add `-Werror` to hardening flags once all warnings are fixed
QMAKE_CXXFLAGS += -fstack-protector-all \
-fPIE \
-Wstack-protector \
-Wstrict-overflow \
-Wstrict-aliasing \
--param ssp-buffer-size=1
win32 {
QMAKE_CXXFLAGS += -fPIE \
-Wstrict-overflow \
-Wstrict-aliasing
} else {
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)
unix:!macx {
QMAKE_LFLAGS += -Wl,-z,now -Wl,-z,relro
Expand Down Expand Up @@ -273,6 +280,13 @@ win32 {
./libs/lib/libopus.a \
./libs/lib/libtoxencryptsave.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/libsodium.a \
./libs/lib/libavdevice.a \
Expand Down

0 comments on commit debb6e9

Please sign in to comment.