Skip to content

Commit

Permalink
Bug 544191: Use system zlib on Mac OS X. When using system zlib, -lz has
Browse files Browse the repository at this point in the history
to be added to OS_LIBS instead of EXTRA_LIBS because $(PROGRAM) depends on
$(EXTRA_LIBS).  r=rrelyea.
Modified Files:
	coreconf/Darwin.mk nss/cmd/platlibs.mk
	nss/cmd/modutil/Makefile nss/cmd/signtool/Makefile
  • Loading branch information
wtc%google.com committed Feb 4, 2010
1 parent 38d3d77 commit 7a201ff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion security/coreconf/Darwin.mk
Expand Up @@ -131,4 +131,5 @@ DLL_SUFFIX = dylib
PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \
sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,_,' > $@

G++INCLUDES = -I/usr/include/g++
USE_SYSTEM_ZLIB = 1
ZLIB_LIBS = -lz
6 changes: 6 additions & 0 deletions security/nss/cmd/modutil/Makefile
Expand Up @@ -57,6 +57,12 @@ include $(CORE_DEPTH)/coreconf/config.mk
#######################################################################
include ../platlibs.mk

ifdef USE_SYSTEM_ZLIB
OS_LIBS += $(ZLIB_LIBS)
else
EXTRA_LIBS += $(ZLIB_LIBS)
endif

#######################################################################
# (5) Execute "global" rules. (OPTIONAL) #
#######################################################################
Expand Down
4 changes: 1 addition & 3 deletions security/nss/cmd/platlibs.mk
Expand Up @@ -250,6 +250,4 @@ ifndef USE_SYSTEM_ZLIB
ZLIB_LIBS = $(DIST)/lib/$(LIB_PREFIX)zlib.$(LIB_SUFFIX)
endif

JAR_LIBS = $(DIST)/lib/$(LIB_PREFIX)jar.$(LIB_SUFFIX) \
$(ZLIB_LIBS) \
$(NULL)
JAR_LIBS = $(DIST)/lib/$(LIB_PREFIX)jar.$(LIB_SUFFIX)
6 changes: 6 additions & 0 deletions security/nss/cmd/signtool/Makefile
Expand Up @@ -58,6 +58,12 @@ include $(CORE_DEPTH)/coreconf/config.mk

include ../platlibs.mk

ifdef USE_SYSTEM_ZLIB
OS_LIBS += $(ZLIB_LIBS)
else
EXTRA_LIBS += $(ZLIB_LIBS)
endif

#######################################################################
# (5) Execute "global" rules. (OPTIONAL) #
#######################################################################
Expand Down

0 comments on commit 7a201ff

Please sign in to comment.