diff options
author | Lucian Petrut <lpetrut@cloudbasesolutions.com> | 2023-04-21 15:10:23 +0200 |
---|---|---|
committer | Lucian Petrut <lpetrut@cloudbasesolutions.com> | 2023-08-30 14:59:00 +0200 |
commit | 4a0dceec99c003bb624f561757185f4603d7badc (patch) | |
tree | 6a90419d5e3101621c35b3fdba102a838839408e /src/CMakeLists.txt | |
parent | src/common/win32: add missing casts (diff) | |
download | ceph-4a0dceec99c003bb624f561757185f4603d7badc.tar.xz ceph-4a0dceec99c003bb624f561757185f4603d7badc.zip |
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 <lpetrut@cloudbasesolutions.com>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 21f83a44b67..8287539a3fc 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 |