diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 22b3a5decdf..4126d5b82a0 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -53,8 +53,11 @@ ceph_dencoder_SOURCES = \ test/encoding/ceph_dencoder.cc \ $(DENCODER_SOURCES) ceph_dencoder_LDADD = \ - $(LIBOSD) $(LIBMDS) $(LIBMON) $(LIBRGW) $(LIBRGW_DEPS) \ + $(LIBOSD) $(LIBMDS) $(LIBMON) \ $(DENCODER_DEPS) $(CEPH_GLOBAL) +if WITH_RADOSGW +ceph_dencoder_LDADD += $(LIBRGW) $(LIBRGW_DEPS) +endif # These should always use explicit _CFLAGS/_CXXFLAGS so avoid basename conflicts ceph_dencoder_CFLAGS = ${AM_CFLAGS}