]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
FreeBSD/src/rgw/Makefile.am: Fix the inclusion of libs
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 24 Mar 2016 12:08:10 +0000 (13:08 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 10 May 2016 21:41:17 +0000 (23:41 +0200)
 - FreeBSD does not require -ldl
 - FreeBSD does require -lldap if rgw is build --with-ldap

rgw/Makefile.am: Cluster all conditional LIBRGW_DEPS

 - cosmic change

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/rgw/Makefile.am

index c96e8c5d164115d363b206290bd9d1fe4ebcfe28..4683e63e4b440c0866301eb234f059377fea4560 100644 (file)
@@ -93,6 +93,7 @@ librgw_la_SOURCES = \
 
 if WITH_OPENLDAP
 librgw_la_SOURCES += rgw/rgw_ldap.cc
+
 endif
 
 librgw_la_CXXFLAGS = -Woverloaded-virtual -fPIC -I$(srcdir)/xxHash \
@@ -113,8 +114,17 @@ LIBRGW_DEPS += \
        -lcurl \
        -lexpat \
        -lm \
-       -lfcgi \
-       -ldl
+       -lfcgi 
+
+if LINUX
+LIBRGW_DEPS += \
+        -ldl
+endif
+
+if FREEBSD
+LIBRGW_DEPS += \
+      -lldap
+endif
 
 librgw_la_LIBADD = $(LIBRGW_DEPS) \
        $(PTHREAD_LIBS) $(RESOLV_LIBS) libglobal.la \