WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 138832
[GTK] LDFLAGS is ignored when running g-ir-scanner
https://bugs.webkit.org/show_bug.cgi?id=138832
Summary
[GTK] LDFLAGS is ignored when running g-ir-scanner
Ting-Wei Lan
Reported
2014-11-18 05:37:16 PST
GTK+ requires libintl on FreeBSD because there is no gettext implementation in FreeBSD libc. In order to link to libintl, which is not located in the default search path of the linker, we need to add the required path via the linker command line. However, LDFLAGS is ignored when running g-ir-scanner starting from
r167873
, so we have to manually pick required flags from CMAKE_SHARED_LINKER_FLAGS and put them in correct order to prevent g-ir-scanner from linking to the installed version of libraries.
Attachments
[GTK] LDFLAGS is ignored when running g-ir-scanner
(2.96 KB, patch)
2014-11-18 05:38 PST
,
Ting-Wei Lan
no flags
Details
Formatted Diff
Diff
[GTK] LDFLAGS is ignored when running g-ir-scanner
(2.74 KB, patch)
2014-11-25 23:35 PST
,
Ting-Wei Lan
no flags
Details
Formatted Diff
Diff
[GTK] LDFLAGS is ignored when running g-ir-scanner
(2.41 KB, patch)
2014-12-09 00:43 PST
,
Ting-Wei Lan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Ting-Wei Lan
Comment 1
2014-11-18 05:38:19 PST
Created
attachment 241784
[details]
[GTK] LDFLAGS is ignored when running g-ir-scanner
Ting-Wei Lan
Comment 2
2014-11-23 05:48:46 PST
This patch is required to build WebKitGTK+ 2.6.x and 2.7.x on FreeBSD.
Ting-Wei Lan
Comment 3
2014-11-25 23:35:58 PST
Created
attachment 242219
[details]
[GTK] LDFLAGS is ignored when running g-ir-scanner
Alberto Garcia
Comment 4
2014-12-08 02:05:55 PST
Comment on
attachment 242219
[details]
[GTK] LDFLAGS is ignored when running g-ir-scanner View in context:
https://bugs.webkit.org/attachment.cgi?id=242219&action=review
> Source/WebKit2/PlatformGTK.cmake:757 > +# Add required -L flags from ${CMAKE_SHARED_LINKER_FLAGS} for g-ir-scanner > +separate_arguments(INTROSPECTION_ADDITIONAL_LINKER_FLAGS > + UNIX_COMMAND ${CMAKE_SHARED_LINKER_FLAGS}) > +foreach (linker_flag ${INTROSPECTION_ADDITIONAL_LINKER_FLAGS}) > + string(REGEX MATCH "-L[^ ]*" linker_flag_matched "${linker_flag}") > + string(COMPARE EQUAL "${linker_flag_matched}" "" linker_flag_not_allowed) > + if (linker_flag_not_allowed) > + list(REMOVE_ITEM INTROSPECTION_ADDITIONAL_LINKER_FLAGS "${linker_flag}") > + endif () > +endforeach (linker_flag) > +
Isn't it easier to do this instead? string(REGEX MATCHALL "-L[^ ]*" INTROSPECTION_ADDITIONAL_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS})
Ting-Wei Lan
Comment 5
2014-12-09 00:43:43 PST
Created
attachment 242891
[details]
[GTK] LDFLAGS is ignored when running g-ir-scanner
Alberto Garcia
Comment 6
2014-12-09 01:24:48 PST
(In reply to
comment #5
)
> Created
attachment 242891
[details]
> [GTK] LDFLAGS is ignored when running g-ir-scanner
I think that looks much better, thanks!
WebKit Commit Bot
Comment 7
2014-12-09 02:19:53 PST
Comment on
attachment 242891
[details]
[GTK] LDFLAGS is ignored when running g-ir-scanner Clearing flags on attachment: 242891 Committed
r177016
: <
http://trac.webkit.org/changeset/177016
>
WebKit Commit Bot
Comment 8
2014-12-09 02:19:57 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug