From b0d2853ed12d48319fb11a33bc33627fd97552ec Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 12 Sep 2021 14:44:11 +0200 Subject: [PATCH] Remove "-Bsymbolic" for Clang (not supported) --- radio/src/targets/simu/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radio/src/targets/simu/CMakeLists.txt b/radio/src/targets/simu/CMakeLists.txt index bc076d19d..8c0847974 100644 --- a/radio/src/targets/simu/CMakeLists.txt +++ b/radio/src/targets/simu/CMakeLists.txt @@ -49,7 +49,9 @@ if(Qt5Widgets_FOUND) # When the simulator is launched from Companion the runtime dynamic linking can result in Companion overiding the simulator # and crashing the simulator under some OSes # The flag forces the runtime linker to always look for references in the simulator first - target_link_options(${SIMULATOR_TARGET} PRIVATE "LINKER:-Bsymbolic") + if (NOT CLANG) + target_link_options(${SIMULATOR_TARGET} PRIVATE "LINKER:-Bsymbolic") + endif() # add_custom_target(libsimulator DEPENDS ${SIMULATOR_TARGET})