From 1564a325467a8419e1bfc61ef8281800bf73df60 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Thu, 21 Aug 2014 10:16:17 +0200 Subject: [PATCH] Use compilation flags. This makes qmake aware of CFLAGS, CXXFLAGS, LDFLAGS, CPPFLAGS. This is helpful to easily add flags to the compilation (such as hardening flags). Signed-off-by: Salvo 'LtWorf' Tomaselli Signed-off-by: Dirk Hohndel --- subsurface.pro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subsurface.pro b/subsurface.pro index 06186897a..2c5393e36 100644 --- a/subsurface.pro +++ b/subsurface.pro @@ -352,3 +352,8 @@ include(subsurface-install.pri) # to build debuggable binaries on Windows, you need something like this #QMAKE_CFLAGS_RELEASE=$$QMAKE_CFLAGS_DEBUG -O0 -g #QMAKE_CXXFLAGS_RELEASE=$$QMAKE_CXXFLAGS_DEBUG -O0 -g + +QMAKE_CXXFLAGS += $$(CXXFLAGS) +QMAKE_CFLAGS += $$(CFLAGS) +QMAKE_LFLAGS += $$(LDFLAGS) +QMAKE_CPPFLAGS += $$(CPPFLAGS)