diff options
author | Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it> | 2014-08-21 10:16:17 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-27 16:09:06 -0700 |
commit | 1564a325467a8419e1bfc61ef8281800bf73df60 (patch) | |
tree | 09b84adeb0390356874d70415d632df7b7c16aa1 /subsurface.pro | |
parent | 2a1a6402274911c144e32217bf0ca6cdebb0b89a (diff) | |
download | subsurface-1564a325467a8419e1bfc61ef8281800bf73df60.tar.gz |
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 <tiposchi@tiscali.it>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface.pro')
-rw-r--r-- | subsurface.pro | 5 |
1 files changed, 5 insertions, 0 deletions
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) |