Adding static build stuff to trunk instead of a branch... -_-
[quassel.git] / build / targets / target.pri
index 9db3081..48ed6e5 100644 (file)
@@ -10,6 +10,12 @@ 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)