Adding some stuff to the buildsystem to facilitate static builds. 0.2.0-alpha3
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 20 Mar 2008 18:59:30 +0000 (18:59 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 20 Mar 2008 18:59:30 +0000 (18:59 +0000)
build/buildconf.pri
build/targets/target.pri

index e4a5710..458d352 100644 (file)
@@ -1,6 +1,12 @@
-CONFIG += debug warn_on uic resources qt
+CONFIG += warn_on uic resources qt
 # CONFIG += incremental link_prl nostrip qt_no_framework
 
-win32{ 
-CONFIG = release warn_on uic resources qt windows static
+release {
+  CONFIG *= release strip
+} else {
+  CONFIG *= debug
+}
+
+win32 { 
+  CONFIG = release warn_on uic resources qt windows static
 }
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)