Bug 47347 - [Qt] Linking libWebKit2.a in anything else than libQtWebKit.so results in unresolved symbols.
Summary: [Qt] Linking libWebKit2.a in anything else than libQtWebKit.so results in unr...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Enhancement
Assignee: Jocelyn Turcotte
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-10-07 07:13 PDT by Jocelyn Turcotte
Modified: 2010-10-08 07:00 PDT (History)
1 user (show)

See Also:


Attachments
Patch (3.10 KB, patch)
2010-10-07 07:19 PDT, Jocelyn Turcotte
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn Turcotte 2010-10-07 07:13:57 PDT
The problem is that the -whole-archive option is used when using addWebKit2Lib to link libWebKit2.a to a target.

Since all objects are included, those that relies on using WebCore's internals results in unresolved symbols if those internals are not in the target as well.

This is currently a problem with WebKitTestRunner's InjectedBundle which needs the WebKit2 shared API included in libWebKit2.a
Comment 1 Jocelyn Turcotte 2010-10-07 07:19:28 PDT
Created attachment 70085 [details]
Patch
Comment 2 Andras Becsi 2010-10-08 07:00:41 PDT
Comment on attachment 70085 [details]
Patch

Clearing flags on attachment: 70085

Committed r69397: <http://trac.webkit.org/changeset/69397>
Comment 3 Andras Becsi 2010-10-08 07:00:51 PDT
All reviewed patches have been landed.  Closing bug.