Bug 544191: Use system zlib on Mac OS X. When using system zlib, -lz has
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 git-svn-id: svn://10.0.0.236/trunk@259601 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) #
|
||||
#######################################################################
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) #
|
||||
#######################################################################
|
||||
|
||||
Reference in New Issue
Block a user