forked from qt-creator/qt-creator
CMake: require no undefined symbols
The ELF default is historical legacy. We should always require all libraries and all plugins to link to their dependencies and not accidentally forget something (like implementing a virtual function). Change-Id: I5e00996d7f4b4a10bc98fffd1629f8bfcf0d1c8f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
@@ -244,6 +244,7 @@ function(add_qtc_library name)
|
||||
unset(NAMELINK_OPTION)
|
||||
if (library_type STREQUAL "SHARED")
|
||||
set(NAMELINK_OPTION NAMELINK_SKIP)
|
||||
qtc_add_link_flags_no_undefined(${name})
|
||||
endif()
|
||||
|
||||
unset(COMPONENT_OPTION)
|
||||
|
||||
Reference in New Issue
Block a user