Skip to content
Prev 23794 / 63421 Next

How to customize the list of exported functions in a shared library (update)

Vladimir Eremeev wrote:
This file is generated in R scripts.
MkRules contains

%.dll:
	@$(ECHO) EXPORTS > $*.def
	@$(NM) $^ | $(SED) -n 's/^........ [BCDRT] _/ /p' >> $*.def
	$(DLL) -shared $(DLLFLAGS) $($*-DLLFLAGS) -o $@ $*.def $^ $($*-DLLLIBS)
$(DLLLIBS)
	@$(RM) $*.def