--- g++-base.conf	2014-12-05 18:24:38.000000000 +0200
+++ qtbase-opensource-src-5.4.0/mkspecs/common/g++-base.conf	2015-02-16 12:34:43.603049664 +0200
@@ -10,17 +10,22 @@
 
 QMAKE_COMPILER          = gcc
 
-QMAKE_CC                = gcc
+QMAKE_CC                = PISILINUX_CC
 
 QMAKE_LINK_C            = $$QMAKE_CC
 QMAKE_LINK_C_SHLIB      = $$QMAKE_CC
 
-QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -g
+QMAKE_CFLAGS_RELEASE    += PISILINUX_CFLAGS
+QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += PISILINUX_CFLAGS -g
 
-QMAKE_CXX               = g++
+QMAKE_CXX               = PISILINUX_CXX
 
-QMAKE_LINK              = $$QMAKE_CXX
-QMAKE_LINK_SHLIB        = $$QMAKE_CXX
+QMAKE_LINK     = PISILINUX_CXX
+QMAKE_LINK_SHLIB   = PISILINUX_CXX
+QMAKE_LINK_C       = PISILINUX_CC
+QMAKE_LINK_C_SHLIB = PISILINUX_CC
+
+QMAKE_LFLAGS_RELEASE    += PISILINUX_LDFLAGS
 
 QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
 
