Bug 190398 - [WPE] Explicitly link against gmodule where used
Summary: [WPE] Explicitly link against gmodule where used
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Claudio Saavedra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-09 08:16 PDT by Claudio Saavedra
Modified: 2018-10-09 12:25 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.16 KB, patch)
2018-10-09 08:16 PDT, Claudio Saavedra
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Saavedra 2018-10-09 08:16:07 PDT
[WPE] Explicitly link against gmodule where used
Comment 1 Claudio Saavedra 2018-10-09 08:16:54 PDT
Created attachment 351879 [details]
Patch
Comment 2 Claudio Saavedra 2018-10-09 08:18:01 PDT
I ran into linking issues downstream because gmodule was not being pulled in, so let's add this. Not sure if it's needed for GTK+, but maybe yes.
Comment 3 Adrian Perez 2018-10-09 10:13:00 PDT
(In reply to Claudio Saavedra from comment #2)
> I ran into linking issues downstream because gmodule was not being pulled
> in, so let's add this. Not sure if it's needed for GTK+, but maybe yes.

I think the linking error is noticeable more easily in the WPE port because
GModule is used in JSC to load “libWPEInspectorResources.so”, which gets
built first, but then it's used also in WebKit's “ModuleGlib.cpp” and
“InjectedBundleGlib.cpp” so both ports en up using it. It could be that
in the case of the GTK+ port some of the additional libraries used by 
the sources in the “WebKit/” subdir also use GModule, and that's why we
don't see linker errors there.

At any rate, the correct thing to do is explicitly adding the GModule
flags obtained from pkg-config to the targets which use them, so let's
land this (informal r+ here!)
Comment 4 Adrian Perez 2018-10-09 10:14:22 PDT
FWIW, the GTK+ port already has GModule in “Source/WebCore/PlatformGTK.cmake”,
so no changes should be needed for the GTK+ port.
Comment 5 WebKit Commit Bot 2018-10-09 12:25:25 PDT
Comment on attachment 351879 [details]
Patch

Clearing flags on attachment: 351879

Committed r236975: <https://trac.webkit.org/changeset/236975>
Comment 6 WebKit Commit Bot 2018-10-09 12:25:26 PDT
All reviewed patches have been landed.  Closing bug.