Changeset 105305 in webkit


Ignore:
Timestamp:
Jan 18, 2012, 12:12:51 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt][WK2] Broken build with undefined reference to shm_open and shm_unlink
https://bugs.webkit.org/show_bug.cgi?id=76538

Patch by Luciano Wolf <Luciano Miguel Wolf> on 2012-01-18
Reviewed by Tor Arne Vestbø.

The -lrt parameter was coming before -lWebKit2 during linkage.

Moved rt lib inclusion from Source/api.pri to WebKit2.pri as it should be aware
of its own dependencies instead of letting WebKit guess about. Letting
it on api.pri can lead to a wrong parameter's order during linker phase.
Ubuntu 11.10 was giving errors about SharedMemory (shm_open and
shm_unlink undefined symbols).

.:

  • Source/api.pri:

Source/WebKit2:

The issue was fixed with the help of Aloisio Almeida and Lauro Venancio.

  • WebKit2.pri:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r105267 r105305  
     12012-01-18  Luciano Wolf  <luciano.wolf@openbossa.org>
     2
     3        [Qt][WK2] Broken build with undefined reference to shm_open and shm_unlink
     4        https://bugs.webkit.org/show_bug.cgi?id=76538
     5
     6        Reviewed by Tor Arne Vestbø.
     7
     8        The -lrt parameter was coming before -lWebKit2 during linkage.
     9
     10        Moved rt lib inclusion from Source/api.pri to WebKit2.pri as it should be aware
     11        of its own dependencies instead of letting WebKit guess about. Letting
     12        it on api.pri can lead to a wrong parameter's order during linker phase.
     13        Ubuntu 11.10 was giving errors about SharedMemory (shm_open and
     14        shm_unlink undefined symbols).
     15
     16        * Source/api.pri:
     17
    1182012-01-18  Balazs Kelemen  <kbalazs@webkit.org>
    219
  • trunk/Source/WebKit2/ChangeLog

    r105289 r105305  
     12012-01-18  Luciano Wolf  <luciano.wolf@openbossa.org>
     2
     3        [Qt][WK2] Broken build with undefined reference to shm_open and shm_unlink
     4        https://bugs.webkit.org/show_bug.cgi?id=76538
     5
     6        Reviewed by Tor Arne Vestbø.
     7
     8        The -lrt parameter was coming before -lWebKit2 during linkage.
     9
     10        Moved rt lib inclusion from Source/api.pri to WebKit2.pri as it should be aware
     11        of its own dependencies instead of letting WebKit guess about. Letting
     12        it on api.pri can lead to a wrong parameter's order during linker phase.
     13        Ubuntu 11.10 was giving errors about SharedMemory (shm_open and
     14        shm_unlink undefined symbols).
     15
     16        The issue was fixed with the help of Aloisio Almeida and Lauro Venancio.
     17
     18        * WebKit2.pri:
     19
    1202012-01-18  Carlos Garnacho  <carlosg@gnome.org>
    221
  • trunk/Source/WebKit2/WebKit2.pri

    r104285 r105305  
    6161
    6262INCLUDEPATH += $$WEBKIT2_GENERATED_SOURCES_DIR
     63
     64linux-g++*: {
     65    # -lrt is required for shm_open and shm_unlink.
     66    LIBS += -lrt
     67}
  • trunk/Source/api.pri

    r104034 r105305  
    225225    PRE_TARGETDEPS += $$PWD/qtwebkit-export.map
    226226    QMAKE_LFLAGS += -Wl,--version-script=$$PWD/qtwebkit-export.map
    227 
    228     !no_webkit2: {
    229         # -lrt is required for shm_open and shm_unlink.
    230         LIBS += -lrt
    231     }
    232 }
     227}
Note: See TracChangeset for help on using the changeset viewer.