From 3f0359ddcf2d6402580e177de329ec48686c0da1 Mon Sep 17 00:00:00 2001 From: Felix Kauselmann <2039670+selmf@users.noreply.github.com> Date: Wed, 8 Apr 2015 15:15:37 +0200 Subject: [PATCH] move gcc/clang compiler flags into unix directive --- .../compressed_archive_test.pro | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/compressed_archive_test/compressed_archive_test.pro b/tests/compressed_archive_test/compressed_archive_test.pro index 40978070..8cb5902c 100644 --- a/tests/compressed_archive_test/compressed_archive_test.pro +++ b/tests/compressed_archive_test/compressed_archive_test.pro @@ -1,7 +1,6 @@ TEMPLATE = app CONFIG += console -QMAKE_CXXFLAGS+= -O2 -pipe -Wall SOURCES += \ main.cpp \ @@ -15,7 +14,14 @@ win32 { } unix { - DEFINES += "LIBDIR=\\\"$$/usr/lib\\\"" + + QMAKE_CXXFLAGS+= -O3 -pipe -Wall -pthread -std=c++11 + QMAKE_CFLAGS+= -O3 -pipe -Wall -pthread + + #this might need a little tweaking on mac os + DEFINES += "LIBDIR=\\\"$$/usr/lib\\\"" HAVE_ZLIB HAVE_BZIP2 + + LIBS += -lbz2 -lz } !CONFIG(unarr){