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

Vladimir Eremeev wl2776 at gmail.com
Mon Feb 5 15:51:49 CET 2007




Vladimir Eremeev wrote:
> 
> 
> It calls gcc:
> gcc  "-I../sources" "-I."  -IC:/PROGRA~1/R/include  -gdwarf-2 -Wall -O2
> -std=gnu99   -c rsnns.c -o rsnns.o
> gcc  -shared   -o Rsnns.dll Rsnns.def [ lots of *.o ]  -LC:/PROGRA~1/R/bin
> "-Lc:/mingw/lib" -lfl -liberty   -lR
> 
> The file Rsnns.def is generated automatically and is deleted on success.
> On error, it remains, and contains export of all symbols.
> Probably GCC generates it, I haven't tracked its generation in the R's
> scripts.
> 

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

-- 
View this message in context: http://www.nabble.com/How-to-customize-the-list-of-exported-functions-in-a-shared-library-tf3173289.html#a8807621
Sent from the R devel mailing list archive at Nabble.com.



More information about the R-devel mailing list