Merge pull request #24920 from wjwithagen/wjw-fix-build-symbolic

cmake: do not pass -B{symbolic,symbolic-functions} to linker on FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2018-11-05 17:15:48 -08:00 committed by GitHub
commit f6cc40a5d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,7 @@ target_link_libraries(ceph-common ${ceph_common_deps})
set_target_properties(ceph-common PROPERTIES
SOVERSION 1
INSTALL_RPATH "")
if(NOT APPLE)
if(NOT APPLE AND NOT FREEBSD)
# Apple uses Mach-O, not ELF. so this option does not apply to APPLE.
#
# prefer the local symbol definitions when binding references to global