[CMake] CMAKE_SHARED_LINKER_FLAGS drops "-Wl,--no-undefined" Although WebKitCompilerFlags.cmake adds "-Wl,--no-undefined" CMAKE_SHARED_LINKER_FLAGS, I found it isn't effective (Bug 199625 Comment 24). OptionsCommon.cmake has a typo. > set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=lld -Wl,--disable-new-dtags") CMAKE_EXE_LINKER_FLAGS should be CMAKE_SHARED_LINKER_FLAGS.
While working on this, I see an existing issue: > Tools/DumpRenderTree/TestNetscapePlugIn/CMakeFiles/TestNetscapePlugIn.dir/PluginTest.cpp.o:PluginTest.cpp:function PluginTest::indicateTestFailure(): error: undefined reference to 'WTF::sleep(WTF::Seconds)'
Created attachment 374767 [details] Patch
These code was added in Bug 131177 and Bug 140049.
Comment on attachment 374767 [details] Patch Clearing flags on attachment: 374767 Committed r247810: <https://trac.webkit.org/changeset/247810>
All reviewed patches have been landed. Closing bug.