Bug 493364: can't build with --disable-dbm option when not cross-compiling
Patch contributed by Kouhei Sutou <kou@clear-code.com>
and by Hiroyuki Ikezoe <ikezoe@clear-code.com>, r=nelson
--- a/security/nss/cmd/shlibsign/Makefile
+++ b/security/nss/cmd/shlibsign/Makefile
@@ -75,17 +75,19 @@ EXTRA_SHARED_LIBS += \
endif
# sign any and all shared libraries that contain the word freebl
CHECKLIBS = $(DIST)/lib/$(DLL_PREFIX)softokn3.$(DLL_SUFFIX)
CHECKLIBS += $(wildcard $(DIST)/lib/$(DLL_PREFIX)freebl*3.$(DLL_SUFFIX))
+ifndef NSS_DISABLE_DBM
CHECKLIBS += $(DIST)/lib/$(DLL_PREFIX)nssdbm3.$(DLL_SUFFIX)
+endif
CHECKLOC = $(CHECKLIBS:.$(DLL_SUFFIX)=.chk)
MD_LIB_RELEASE_FILES = $(CHECKLOC)
ALL_TRASH += $(CHECKLOC)
#######################################################################
# (5) Execute "global" rules. (OPTIONAL) #