Title: [247810] trunk
- Revision
- 247810
- Author
- [email protected]
- Date
- 2019-07-24 19:04:41 -0700 (Wed, 24 Jul 2019)
Log Message
[CMake] CMAKE_SHARED_LINKER_FLAGS drops "-Wl,--no-undefined"
https://bugs.webkit.org/show_bug.cgi?id=200074
Patch by Fujii Hironori <[email protected]> on 2019-07-24
Reviewed by Michael Catanzaro.
.:
Although WebKitCompilerFlags.cmake adds "-Wl,--no-undefined" to
CMAKE_SHARED_LINKER_FLAGS, it wasn't effective because
OptionsCommon.cmake inadvertently override the value with
CMAKE_EXE_LINKER_FLAGS as:
> set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ...")
* Source/cmake/OptionsCommon.cmake: Use string(APPEND) to modify
CMAKE_*_LINKER_FLAGS variables to avoid typos.
Tools:
There was a latent issue. PluginTest::indicateTestFailure was
using WTF::sleep without linking WTF.
* DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt:
Added WebKit::WTF to WebKitTestNetscapePlugIn_LIBRARIES.
Modified Paths
Diff
Modified: trunk/ChangeLog (247809 => 247810)
--- trunk/ChangeLog 2019-07-25 02:02:48 UTC (rev 247809)
+++ trunk/ChangeLog 2019-07-25 02:04:41 UTC (rev 247810)
@@ -1,3 +1,20 @@
+2019-07-24 Fujii Hironori <[email protected]>
+
+ [CMake] CMAKE_SHARED_LINKER_FLAGS drops "-Wl,--no-undefined"
+ https://bugs.webkit.org/show_bug.cgi?id=200074
+
+ Reviewed by Michael Catanzaro.
+
+ Although WebKitCompilerFlags.cmake adds "-Wl,--no-undefined" to
+ CMAKE_SHARED_LINKER_FLAGS, it wasn't effective because
+ OptionsCommon.cmake inadvertently override the value with
+ CMAKE_EXE_LINKER_FLAGS as:
+
+ > set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ...")
+
+ * Source/cmake/OptionsCommon.cmake: Use string(APPEND) to modify
+ CMAKE_*_LINKER_FLAGS variables to avoid typos.
+
2019-07-23 Carlos Garcia Campos <[email protected]>
Unreviewed. Update OptionsGTK.cmake and NEWS for 2.25.3 release
Modified: trunk/Source/cmake/OptionsCommon.cmake (247809 => 247810)
--- trunk/Source/cmake/OptionsCommon.cmake 2019-07-25 02:02:48 UTC (rev 247809)
+++ trunk/Source/cmake/OptionsCommon.cmake 2019-07-25 02:04:41 UTC (rev 247810)
@@ -69,9 +69,9 @@
if (USE_LD_LLD)
execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=lld -Wl,--version ERROR_QUIET OUTPUT_VARIABLE LD_VERSION)
if ("${LD_VERSION}" MATCHES "LLD")
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=lld -Wl,--disable-new-dtags")
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=lld -Wl,--disable-new-dtags")
- set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fuse-ld=lld -Wl,--disable-new-dtags")
+ string(APPEND CMAKE_EXE_LINKER_FLAGS " -fuse-ld=lld -Wl,--disable-new-dtags")
+ string(APPEND CMAKE_SHARED_LINKER_FLAGS " -fuse-ld=lld -Wl,--disable-new-dtags")
+ string(APPEND CMAKE_MODULE_LINKER_FLAGS " -fuse-ld=lld -Wl,--disable-new-dtags")
else ()
set(USE_LD_LLD OFF)
endif ()
@@ -83,9 +83,9 @@
if (USE_LD_GOLD)
execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version ERROR_QUIET OUTPUT_VARIABLE LD_VERSION)
if ("${LD_VERSION}" MATCHES "GNU gold")
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags")
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags")
- set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags")
+ string(APPEND CMAKE_EXE_LINKER_FLAGS " -fuse-ld=gold -Wl,--disable-new-dtags")
+ string(APPEND CMAKE_SHARED_LINKER_FLAGS " -fuse-ld=gold -Wl,--disable-new-dtags")
+ string(APPEND CMAKE_MODULE_LINKER_FLAGS " -fuse-ld=gold -Wl,--disable-new-dtags")
else ()
message(WARNING "GNU gold linker isn't available, using the default system linker.")
set(USE_LD_GOLD OFF)
Modified: trunk/Tools/ChangeLog (247809 => 247810)
--- trunk/Tools/ChangeLog 2019-07-25 02:02:48 UTC (rev 247809)
+++ trunk/Tools/ChangeLog 2019-07-25 02:04:41 UTC (rev 247810)
@@ -1,5 +1,18 @@
2019-07-24 Fujii Hironori <[email protected]>
+ [CMake] CMAKE_SHARED_LINKER_FLAGS drops "-Wl,--no-undefined"
+ https://bugs.webkit.org/show_bug.cgi?id=200074
+
+ Reviewed by Michael Catanzaro.
+
+ There was a latent issue. PluginTest::indicateTestFailure was
+ using WTF::sleep without linking WTF.
+
+ * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt:
+ Added WebKit::WTF to WebKitTestNetscapePlugIn_LIBRARIES.
+
+2019-07-24 Fujii Hironori <[email protected]>
+
[GTK][WPE][CMake] failing to build TestWebKitAPIInjectedBundle due to missing forwarding headers
https://bugs.webkit.org/show_bug.cgi?id=200073
Modified: trunk/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt (247809 => 247810)
--- trunk/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt 2019-07-25 02:02:48 UTC (rev 247809)
+++ trunk/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt 2019-07-25 02:04:41 UTC (rev 247810)
@@ -36,12 +36,16 @@
${WTF_DIR}
)
+set(WebKitTestNetscapePlugIn_LIBRARIES
+ WebKit::WTF
+)
+
if (MOZ_X11)
set(WebKitTestNetscapePlugIn_SYSTEM_INCLUDE_DIRECTORIES
${X11_INCLUDE_DIR}
)
- set(WebKitTestNetscapePlugIn_LIBRARIES
+ list(APPEND WebKitTestNetscapePlugIn_LIBRARIES
${X11_LIBRARIES}
)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes