Ignore:
Timestamp:
Jan 20, 2011, 10:13:55 AM (14 years ago)
Author:
[email protected]
Message:

2011-01-20 Andras Becsi <[email protected]>

Reviewed by Csaba Osztrogonác.

[Qt][WK2] WebKit2 enabled build fails to link

Work around undefined reference linking issues until the buildsystem gets redesigned.
These issues first occured in minimal builds (see BUG 50519).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/JavaScriptCore.pri

    r76122 r76263  
    8989        # that can't resolve symbols from QtCore if libjscore comes after.
    9090        QMAKE_LIBDIR = $$pathToJavaScriptCoreOutput $$QMAKE_LIBDIR
    91         LIBS += -l$$JAVASCRIPTCORE_TARGET
     91        webkit2 {
     92            # FIXME Workaround for undefined reference linking issues until the build system gets redesigned
     93            LIBS += -Wl,-whole-archive -l$$JAVASCRIPTCORE_TARGET -Wl,-no-whole-archive
     94        } else {
     95            LIBS += -l$$JAVASCRIPTCORE_TARGET
     96        }
    9297        POST_TARGETDEPS += $${pathToJavaScriptCoreOutput}$${QMAKE_DIR_SEP}lib$${JAVASCRIPTCORE_TARGET}.a
    9398    }
Note: See TracChangeset for help on using the changeset viewer.