After EFL library upgrade, webkit2-efl failed to build
because wrong libraries got added to -Wl,--whole-archive/
-Wl,--no-whole-archive linker options.
Fix by moving --[no-]whole-arhive to a proper place.
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
# Upversion should keep "-Wl,--whole-archive ${JavaScriptCore_LIBRARY_NAME} -Wl,--no-whole-archive"
SET(WebCore_LIBRARIES
${WTF_LIBRARY_NAME}
- "-Wl,--whole-archive"
- ${JavaScriptCore_LIBRARY_NAME}
- "-Wl,--no-whole-archive"
)
SET(WebCore_LINK_FLAGS "")
LIST(APPEND WebKit2_LIBRARIES
${WebCore_LIBRARY_NAME}
+ "-Wl,--whole-archive"
+ ${JavaScriptCore_LIBRARY_NAME}
+ "-Wl,--no-whole-archive"
)
ADD_DEFINITIONS(-DBUILDING_WEBKIT)
FIND_PACKAGE (X11 REQUIRED)
SET(PluginProcess_LIBRARIES
+ "-Wl,--whole-archive"
${JavaScriptCore_LIBRARY_NAME}
+ "-Wl,--no-whole-archive"
${WebCore_LIBRARY_NAME}
${WebKit2_LIBRARY_NAME}
${X11_LIBRARIES}