]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Don't use '--exclude-libs' linker option on DARWIN
authorYan, Zheng <zyan@redhat.com>
Mon, 6 Jul 2015 01:20:33 +0000 (09:20 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 08:00:22 +0000 (16:00 +0800)
Only GNU linker supports this option

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/Makefile-client.am

index af1a84427822f9c0be36b89fa12fbdeb5ae96ccb..7e8c7165f441f6baf540c7d30ac7da2229d1d3b1 100644 (file)
@@ -94,7 +94,9 @@ python_PYTHON += pybind/cephfs.py
 libcephfs_la_SOURCES = libcephfs.cc
 libcephfs_la_LIBADD = $(LIBCLIENT) $(LIBCOMMON) $(PTHREAD_LIBS) $(CRYPTO_LIBS) $(EXTRALIBS)
 libcephfs_la_LDFLAGS = ${AM_LDFLAGS} -version-info 1:0:0 -export-symbols-regex '^ceph_.*'
+if LINUX
 libcephfs_la_LDFLAGS += -Xcompiler -Xlinker -Xcompiler '--exclude-libs=libcommon.a'
+endif # LINUX
 lib_LTLIBRARIES += libcephfs.la
 
 # jni library (java source is in src/java)