From 4a0dceec99c003bb624f561757185f4603d7badc Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Fri, 21 Apr 2023 13:10:23 +0000 Subject: [PATCH] cmake: avoid -Bsymbolic on Windows The "-Bsymbolic" and "-Bsymbolic-functions" flags only apply to ELF binaries. llvm errors out when targeting Windows, which is why we'll need to skip those flags for Windows builds. Signed-off-by: Lucian Petrut --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 21f83a44b6777..8287539a3fc70 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -570,7 +570,7 @@ endif() set_target_properties(ceph-common PROPERTIES SOVERSION 2 SKIP_RPATH TRUE) -if(NOT APPLE AND NOT FREEBSD) +if(NOT APPLE AND NOT FREEBSD AND NOT WIN32) # Apple uses Mach-O, not ELF. so this option does not apply to APPLE. # # prefer the local symbol definitions when binding references to global -- 2.39.5