diff options
Diffstat (limited to 'Tools/qmake/mkspecs/features/functions.prf')
-rw-r--r-- | Tools/qmake/mkspecs/features/functions.prf | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Tools/qmake/mkspecs/features/functions.prf b/Tools/qmake/mkspecs/features/functions.prf index 972a2079f..c38f80d6a 100644 --- a/Tools/qmake/mkspecs/features/functions.prf +++ b/Tools/qmake/mkspecs/features/functions.prf @@ -260,11 +260,15 @@ defineTest(linkAgainstLibrary) { POST_TARGETDEPS += $${path}$${QMAKE_DIR_SEP}lib$${target}.a } - # The following line is to prevent qmake from adding jscore to libQtWebKit's prl dependencies. - # The compromise we have to accept by disabling explicitlib is to drop support to link QtWebKit - # statically in applications (which isn't used often because, among other things, of licensing obstacles). - CONFIG -= explicitlib - CONFIG -= staticlib + # gprof does not support profiling a shared library. + # To profile WebKit, applications must link QtWebKit statically. + !contains(CONFIG, gprof) { + # The following line is to prevent qmake from adding jscore to libQtWebKit's prl dependencies. + # The compromise we have to accept by disabling explicitlib is to drop support to link QtWebKit + # statically in applications (which isn't used often because, among other things, of licensing obstacles). + CONFIG -= explicitlib + CONFIG -= staticlib + } } export(LIBS) |