Skip to content
Snippets Groups Projects
Commit f526debc authored by Alexander V. Tikhonov's avatar Alexander V. Tikhonov Committed by Kirill Yukhin
Browse files

test: fix for openSUSE tests build

Found that openSUSE toolchain adds '--no-undefined' linker flag leading
to fails while building tests. The changes suppress this flag since
dynamic libraries are loaded via Tarantool executable and use its
symbols. So it is completely OK to have undefined symbols at build time.

Needed for #4562
parent d3e2a2a4
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,14 @@ endfunction()
add_compile_flags("C;CXX"
"-Wno-unused-parameter")
# WARNING: This change affects current cmake variable scope and so
# a user should care to don't use it in a top level scope.
# The dynamic libraries will be loaded from tarantool executable
# and will use symbols from it. So it is completely okay to have
# unresolved symbols at build time.
string(REPLACE "-Wl,--no-undefined" ""
CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
if(POLICY CMP0037)
if(CMAKE_VERSION VERSION_LESS 3.11)
# cmake below 3.11 reserves name test. Use old policy.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment