From ec1e7c5ea679b8f2f6566173960e4e8da73789cd Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Wed, 12 Jun 2002 00:22:42 +0000 Subject: Bug 150143: use map file to limit exported symbols on Mac OS X. The patch is contributed by Brian Ryner . Modified files: Darwin.mk rules.mk Tag: NSS_3_5_BRANCH --- security/coreconf/Darwin.mk | 2 ++ security/coreconf/rules.mk | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'security') diff --git a/security/coreconf/Darwin.mk b/security/coreconf/Darwin.mk index 6c2b93c9d..59f5af8fd 100644 --- a/security/coreconf/Darwin.mk +++ b/security/coreconf/Darwin.mk @@ -70,5 +70,7 @@ DSO_LDOPTS = -dynamiclib -compatibility_version 1 -current_version 1 -install_na MKSHLIB = $(CC) -arch $(CPU_ARCH) $(DSO_LDOPTS) DLL_SUFFIX = dylib +PROCESS_MAP_FILE = grep -v ';+' $(LIBRARY_NAME).def | grep -v ';-' | \ + sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,_,' > $@ G++INCLUDES = -I/usr/include/g++ diff --git a/security/coreconf/rules.mk b/security/coreconf/rules.mk index 76043627a..c53c1ffc5 100644 --- a/security/coreconf/rules.mk +++ b/security/coreconf/rules.mk @@ -364,6 +364,11 @@ endif ifeq ($(OS_TARGET),OpenVMS) @echo "`translate $@`" > $(@:$(DLL_SUFFIX)=vms) endif +ifeq ($(OS_TARGET),Darwin) +ifdef MAPFILE + nmedit -s $(MAPFILE) $@ +endif +endif endif endif -- cgit v1.2.1