diff --git a/security/coreconf/WIN32.mk b/security/coreconf/WIN32.mk index c74c5b9b01bb..b9a9c3f5206e 100644 --- a/security/coreconf/WIN32.mk +++ b/security/coreconf/WIN32.mk @@ -92,10 +92,10 @@ endif DEFINES += -DWIN32 ifdef MAPFILE -# Add LD options to restrict exported symbols to those in the map file +DLLFLAGS += -DEF:$(MAPFILE) endif # Change PROCESS to put the mapfile in the correct format for this platform -PROCESS_MAP_FILE = $(INSTALL) -m 444 $(LIBRARY_NAME).def $@ +PROCESS_MAP_FILE = perl -e "open INFILE, \"< $(LIBRARY_NAME).def\" ; open OUTFILE, \"> $@ \"; print OUTFILE " #