mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Add LINKER: prefix to link options
CMake will translate this to a compiler-specific flag to pass the flags to the linker, e.g. for Clang: "-Xlinker", for GCC: "-Wl,". It worked so far because Clang supports -Wl in the meantime too but we should prefer the portable method.
This commit is contained in:
parent
7282b74403
commit
1ff7d245ed
@ -427,7 +427,7 @@ endif ()
|
||||
|
||||
# Make this extra-checks for correct library dependencies.
|
||||
if (OS_LINUX AND NOT SANITIZE)
|
||||
target_link_options(global-group INTERFACE "-Wl,--no-undefined")
|
||||
target_link_options(global-group INTERFACE "LINKER:--no-undefined")
|
||||
endif ()
|
||||
|
||||
######################################
|
||||
|
Loading…
Reference in New Issue
Block a user