Ensure that CONFIG += plugin_bundle will create Mach-O bundles on OSX/iOS

The makespec inits QMAKE_LFLAGS_PLUGIN to the same as QMAKE_LFLAGS_SHLIB,
which will create a dynamic library by passing -dynamiclib. The advantage of
creating a proper bundle (MH_BUNDLE) instead of a dynamic library (MH_DYLIB)
is that bundles can be unloaded completely by the host application.

Change-Id: I03b39b704c09213f40a4cb84f5794bf6b3669fc0
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
bb10
Tor Arne Vestbø 2015-05-11 18:43:47 +02:00
parent 34adfc1372
commit decd18536c
1 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# Override mkspec default which creates a shared library
mac: QMAKE_LFLAGS_PLUGIN = -bundle