Pimping the build system to not crap out when parallel makes are used.
[quassel.git] / build / targets / target.pri
index 9db3081..428daef 100644 (file)
@@ -10,10 +10,16 @@ SRCPATH = ../../src
 OBJECTS_DIR = .$$TARGET
 RCC_DIR     = .$$TARGET
 
+linux-g++:static {
+  # We put libs in contrib/libs that should be linked statically, especially libstdc++.a
+  LIBS *= -L../contrib/libs
+  QMAKE_LFLAGS *= -static-libgcc
+}
+
 for(mod, MODULES) {
   INCLUDEPATH *= $$SRCPATH/$$mod
   LIBS *= -L../modules/$$dirname(mod) -l$$basename(mod)
-  PRE_TARGETDEPS *= ../modules/$$mod
+  #PRE_TARGETDEPS *= ../modules/$$mod
 }
 PRE_TARGETDEPS *= ../../version.inc