From wl2776 at gmail.com  Mon Feb  5 15:51:49 2007
From: wl2776 at gmail.com (Vladimir Eremeev)
Date: Mon, 5 Feb 2007 06:51:49 -0800 (PST)
Subject: [Rd] How to customize the list of exported functions in a
 shared library (update)
In-Reply-To: <8807456.post@talk.nabble.com>
References: <8803194.post@talk.nabble.com>
	<20070205140354.GA12059@tehun.pair.com>
	<8807456.post@talk.nabble.com>
Message-ID: <8807621.post@talk.nabble.com>




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.



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