Fix build breakage with the latest EFL code accepted/2.0alpha-wayland/20130108.175856 submit/2.0alpha-wayland/20130108.135957
authorMikko Ylinen <mikko.ylinen@intel.com>
Tue, 8 Jan 2013 13:30:25 +0000 (15:30 +0200)
committerMikko Ylinen <mikko.ylinen@intel.com>
Tue, 8 Jan 2013 13:30:25 +0000 (15:30 +0200)
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>
Source/WebCore/CMakeLists.txt
Source/WebKit2/CMakeLists.txt
Source/WebKit2/PlatformTizen.cmake

index cdb6a46..60695e5 100755 (executable)
@@ -2697,9 +2697,6 @@ INCLUDE(${WEBCORE_DIR}/UseJSC.cmake)
 #        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 "")
index 055f777..34075b5 100644 (file)
@@ -632,6 +632,9 @@ ENDFOREACH ()
 
 LIST(APPEND WebKit2_LIBRARIES
     ${WebCore_LIBRARY_NAME}
+    "-Wl,--whole-archive"
+    ${JavaScriptCore_LIBRARY_NAME}
+    "-Wl,--no-whole-archive"
 )
 
 ADD_DEFINITIONS(-DBUILDING_WEBKIT)
index 39a0c2e..b4f26ee 100755 (executable)
@@ -293,7 +293,9 @@ ENDIF ()
 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}