diff options
Diffstat (limited to 'security/nss/coreconf/OpenBSD.mk')
-rw-r--r-- | security/nss/coreconf/OpenBSD.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/security/nss/coreconf/OpenBSD.mk b/security/nss/coreconf/OpenBSD.mk index 36a92d087..acf8507aa 100644 --- a/security/nss/coreconf/OpenBSD.mk +++ b/security/nss/coreconf/OpenBSD.mk @@ -36,6 +36,11 @@ DSO_CFLAGS = -fPIC -DPIC DSO_LDOPTS = -shared -fPIC -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) MKSHLIB = $(CC) $(DSO_LDOPTS) +ifdef MAPFILE + MKSHLIB += -Wl,--version-script,$(MAPFILE) +endif +PROCESS_MAP_FILE = grep -v ';-' $< | \ + sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@ USE_SYSTEM_ZLIB = 1 ZLIB_LIBS = -lz |