Fix linking of libraries with -Wl,-whole-archive
authorJonathan Liu <net147@gmail.com>
Mon, 17 Dec 2012 10:31:25 +0000 (21:31 +1100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 17 Dec 2012 10:55:19 +0000 (11:55 +0100)
commit83af7444bf110b5b42970f924c0feeea3d661a73
tree2c802e6c34b44a1374abc8a16f9ed4f233dc8a47
parent69e9b8736f2410fc33db62b432cf5210b50331e9
Fix linking of libraries with -Wl,-whole-archive
https://bugs.webkit.org/show_bug.cgi?id=104436

Patch by Jonathan Liu <net147@gmail.com> on 2012-12-17
Reviewed by Simon Hausmann.

If there is more than one library in LIBS linked with
-Wl,-whole-archive -l... -Wl,-no-whole-archive, qmake tries to
merge the duplicate flags in LIBS which causes linking to fail.

Add no_smart_library_merge to CONFIG to prevent the duplicate
flags from being removed when using -Wl,-whole-archive.

* qmake/mkspecs/features/functions.prf:

Change-Id: I9f5f8b0b59e143177ba2de6e37cfb760836c554b
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Tools/ChangeLog
Tools/qmake/mkspecs/features/functions.prf