Changeset 106651 in webkit


Ignore:
Timestamp:
Feb 3, 2012 5:05:38 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] Fix build when cross-compiling
https://bugs.webkit.org/show_bug.cgi?id=77634

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-02-03
Reviewed by Tor Arne Vestbø.

Source/WebKit2:

  • WebKit2.pri: Link in -lrt on linux mkspecs, regardless of whether gcc

is in use or not. More specifically this fixes the case where the makespace
is not linux-g++* but for a cross-compiling one like linux-arm-gnueabi-g++.

Source/WTF:

  • WTF.pri: Don't use icu-config for determining the library search

path and libraries needed for ICU. Either we use icu-config for includes
_and_ libraries or we don't. Right now we assume that icu is a system library
and expect the headers in the default include search pathes (/usr/include for example).
However we use icu-config to figure out where the libraries are, which breaks when
cross-compiling, because icu-config isn't cross-compile friendly (I wish icu was using
pkg-config). I think for the time being we should require ICU as a _system_ library,
which implies the header and library availability in default search paths. This also
makes the build succeed when cross-compiling with --sysroot.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r106118 r106651  
     12012-02-03  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        [Qt] Fix build when cross-compiling
     4        https://bugs.webkit.org/show_bug.cgi?id=77634
     5
     6        Reviewed by Tor Arne Vestbø.
     7
     8        * WTF.pri: Don't use icu-config for determining the library search
     9        path and libraries needed for ICU. Either we use icu-config for includes
     10        _and_ libraries or we don't. Right now we assume that icu is a system library
     11        and expect the headers in the default include search pathes (/usr/include for example).
     12        However we use icu-config to figure out where the libraries are, which breaks when
     13        cross-compiling, because icu-config isn't cross-compile friendly (I wish icu was using
     14        pkg-config). I think for the time being we should require ICU as a _system_ library,
     15        which implies the header and library availability in default search paths. This also
     16        makes the build succeed when cross-compiling with --sysroot.
     17
    1182012-01-27  Zeno Albisser  <zeno@webkit.org>
    219
  • trunk/Source/WTF/WTF.pri

    r106118 r106651  
    2626    } else {
    2727        contains(QT_CONFIG,icu) {
    28             unix: LIBS += $$system(icu-config --ldflags-searchpath --ldflags-libsonly)
    29             else: LIBS += -licuin
     28            LIBS += -licui18n -licuuc -licudata
    3029        } else {
    3130            error("To build QtWebKit with Qt 5 you need ICU")
  • trunk/Source/WebKit2/ChangeLog

    r106635 r106651  
     12012-02-03  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        [Qt] Fix build when cross-compiling
     4        https://bugs.webkit.org/show_bug.cgi?id=77634
     5
     6        Reviewed by Tor Arne Vestbø.
     7
     8        * WebKit2.pri: Link in -lrt on linux mkspecs, regardless of whether gcc
     9        is in use or not. More specifically this fixes the case where the makespace
     10        is not linux-g++* but for a cross-compiling one like linux-arm-gnueabi-g++.
     11
    1122012-02-03  Shinya Kawanaka  <shinyak@google.com>
    213
  • trunk/Source/WebKit2/WebKit2.pri

    r105305 r106651  
    6262INCLUDEPATH += $$WEBKIT2_GENERATED_SOURCES_DIR
    6363
    64 linux-g++*: {
     64linux-*: {
    6565    # -lrt is required for shm_open and shm_unlink.
    6666    LIBS += -lrt
Note: See TracChangeset for help on using the changeset viewer.