Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 150143: use map file to limit exported symbols on Mac OS X. The p…
…atch

is contributed by Brian Ryner <bryner@netscape.com>.
Modified files: Darwin.mk rules.mk
  • Loading branch information
wtc%netscape.com committed Jun 12, 2002
1 parent c54e29c commit ff54141
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions security/coreconf/Darwin.mk
Expand Up @@ -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++
5 changes: 5 additions & 0 deletions security/coreconf/rules.mk
Expand Up @@ -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

Expand Down

0 comments on commit ff54141

Please sign in to comment.