Don't use '--exclude-libs' linker option on DARWIN

Only GNU linker supports this option

Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2015-07-06 09:20:33 +08:00 committed by Kefu Chai
parent d5c43d9c75
commit 760f5874ca

View 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)