Changeset 177016 in webkit


Ignore:
Timestamp:
Dec 9, 2014 2:20:27 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] LDFLAGS is ignored when running g-ir-scanner
https://bugs.webkit.org/show_bug.cgi?id=138832

Patch by Ting-Wei Lan <Ting-Wei Lan> on 2014-12-09
Reviewed by Carlos Garcia Campos.

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.

  • PlatformGTK.cmake:
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r177012 r177016  
     12014-12-09  Ting-Wei Lan  <lantw44@gmail.com>
     2
     3        [GTK] LDFLAGS is ignored when running g-ir-scanner
     4        https://bugs.webkit.org/show_bug.cgi?id=138832
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        GTK+ requires libintl on FreeBSD because there is no gettext
     9        implementation in FreeBSD libc. In order to link to libintl, which is
     10        not located in the default search path of the linker, we need to add
     11        the required path via the linker command line. However, LDFLAGS is
     12        ignored when running g-ir-scanner starting from r167873, so we have
     13        to manually pick required flags from CMAKE_SHARED_LINKER_FLAGS and
     14        put them in correct order to prevent g-ir-scanner from linking to
     15        the installed version of libraries.
     16
     17        * PlatformGTK.cmake:
     18
    1192014-12-09  Jeremy Jones  <jeremyj@apple.com>
    220
  • trunk/Source/WebKit2/PlatformGTK.cmake

    r176952 r177016  
    749749endif ()
    750750
     751# Add required -L flags from ${CMAKE_SHARED_LINKER_FLAGS} for g-ir-scanner
     752string(REGEX MATCHALL "-L[^ ]*"
     753    INTROSPECTION_ADDITIONAL_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS})
     754
    751755add_custom_command(
    752756    OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
     
    769773        --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
    770774        -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
     775        ${INTROSPECTION_ADDITIONAL_LINKER_FLAGS}
    771776        --no-libtool
    772777        --pkg=gobject-2.0
     
    808813        --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
    809814        -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
     815        ${INTROSPECTION_ADDITIONAL_LINKER_FLAGS}
    810816        --no-libtool
    811817        --pkg=gobject-2.0
Note: See TracChangeset for help on using the changeset viewer.