diff --git a/src/rgw/Makefile.am b/src/rgw/Makefile.am index b083dd1022b8d..ef4f5e8d9acba 100644 --- a/src/rgw/Makefile.am +++ b/src/rgw/Makefile.am @@ -116,6 +116,11 @@ LIBRGW_DEPS += \ -lfcgi \ -ldl +if WITH_OPENLDAP +LIBRGW_DEPS += \ + -lldap +endif + librgw_la_LIBADD = $(LIBRGW_DEPS) \ $(PTHREAD_LIBS) $(RESOLV_LIBS) libglobal.la \ $(EXTRALIBS)