]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: s/-Wl,-export-dynamic/$CMAKE_EXE_EXPORTS_C_FLAG/
authorKefu Chai <kchai@redhat.com>
Sat, 9 Sep 2017 13:18:53 +0000 (21:18 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Sep 2017 02:43:32 +0000 (10:43 +0800)
commit4cb467ece5156c6125af3907beff1200bc5f5600
tree5e73dcd39369d535c905c0d39eb5d6c638a2578f
parentdcace330e1bdddd0aad2b098e4d5f3ee3fb4f4f2
cmake: s/-Wl,-export-dynamic/$CMAKE_EXE_EXPORTS_C_FLAG/

* s/-Wl,-export-dynamic/$CMAKE_EXE_EXPORTS_C_FLAG/
  this address the issue on osx:

    ld: unknown option: --export-dynamic

  because ld on osx does not support `-export-dynamic`, it supports
  `-export_dynamic` though.

  CMAKE_EXE_EXPORTS_C_FLAG is set to -Wl,-export-dynamic on FreeBSD
  and GNU/Linux.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt