- 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>
if WITH_OPENLDAP
librgw_la_SOURCES += rgw/rgw_ldap.cc
+
endif
librgw_la_CXXFLAGS = -Woverloaded-virtual -fPIC -I$(srcdir)/xxHash \
-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 \