diff options
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/common/mac-g++.conf | 2 | ||||
-rw-r--r-- | mkspecs/features/static.prf | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mkspecs/common/mac-g++.conf b/mkspecs/common/mac-g++.conf index dca2e2f..1863898 100644 --- a/mkspecs/common/mac-g++.conf +++ b/mkspecs/common/mac-g++.conf @@ -65,6 +65,8 @@ QMAKE_LFLAGS_PPC += -arch ppc QMAKE_LFLAGS_X86 += -arch i386 QMAKE_LFLAGS_VERSION += -current_version$${LITERAL_WHITESPACE} QMAKE_LFLAGS_COMPAT_VERSION += -compatibility_version$${LITERAL_WHITESPACE} +# -all_load requred to make Objective-C categories work in static builds. +QMAKE_LFLAGS_STATIC_LIB += -all_load QMAKE_RPATH += QMAKE_PCH_OUTPUT_EXT = .gch 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) |