Browse Source

link to libgcc and libstdc++ statically when compiling under MinGW

Ashish Kulkarni 11 years ago
parent
commit
36278382c2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      common.pri

+ 5 - 0
common.pri

@@ -45,6 +45,11 @@ win32 {
     CONFIG += console
 }
 
+win32-g++* {
+    QMAKE_LFLAGS += -static-libgcc
+    QMAKE_LFLAGS += -static-libstdc++
+}
+
 QT += webkit network xmlpatterns svg
 
 # version related information