summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/static.prf
diff options
context:
space:
mode:
authorMorten Sorvig <msorvig@trolltech.com>2009-09-10 08:34:22 (GMT)
committerMorten Sorvig <msorvig@trolltech.com>2009-09-10 08:34:22 (GMT)
commit4de4da9e3cc3acc7a91599447ee632e9db16ff6d (patch)
treef1cee20b0d89919cecd903204e971f59ffcf58f7 /mkspecs/features/static.prf
parent855f1705ceb15c303b55fcced8b0303d90352a44 (diff)
downloadQt-4de4da9e3cc3acc7a91599447ee632e9db16ff6d.zip
Qt-4de4da9e3cc3acc7a91599447ee632e9db16ff6d.tar.gz
Qt-4de4da9e3cc3acc7a91599447ee632e9db16ff6d.tar.bz2
Make static builds work fot Qt/Cocoa.
Add -all_load to make Objective-C categories work. Enable hide_symbols to remove visibility issues.
Diffstat (limited to 'mkspecs/features/static.prf')
-rw-r--r--mkspecs/features/static.prf6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkspecs/features/static.prf b/mkspecs/features/static.prf
index 6e2b54f..7ee7a8a 100644
--- a/mkspecs/features/static.prf
+++ b/mkspecs/features/static.prf
@@ -6,4 +6,10 @@ contains(TEMPLATE, ".*lib"):{
QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_STATIC_LIB
}
}
+
+mac {
+ QMAKE_LFLAGS += $$QMAKE_LFLAGS_STATIC_LIB
+ CONFIG += hide_symbols
+}
+
!static_and_shared:fix_output_dirs:fixExclusiveOutputDirs(static, shared)