Description: Use compiler flags
 This changes the qmake project file to make it use the envvars
 used to set compiler flags. This makes dpkg-buildflags to work
 with this package
 .
 subsurface (4.2-1.1) experimental; urgency=medium
 .
   * Non-maintainer upload.
   * New upstream release (Closes: #755354)
Author: Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>
Bug-Debian: https://bugs.debian.org/755354

---
--- subsurface-4.2.orig/subsurface.pro
+++ subsurface-4.2/subsurface.pro
@@ -323,3 +323,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)
