From tlumley at u.washington.edu  Tue May 16 19:15:11 2006
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Tue, 16 May 2006 10:15:11 -0700 (PDT)
Subject: [Rd] R CMD SHLIB
In-Reply-To: <Pine.LNX.4.64.0605161737400.20542@gannet.stats.ox.ac.uk>
References: <Pine.LNX.4.64.0605161737400.20542@gannet.stats.ox.ac.uk>
Message-ID: <Pine.LNX.4.64.0605161013270.30229@homer22.u.washington.edu>

On Tue, 16 May 2006, Prof Brian Ripley wrote:

> It is possible to do things like
>
> 	env PKG_LIB="-L/opt/foo/lib -lbar" R CMD SHLIB *.c
>
> to add libraries to the creation of a shared object, but I have from time
> to time wondered if we should allow
>
> 	R CMD SHLIB *.c -L/opt/foo/lib -lbar
>
> not least as users seems to expect it to work.  It looks simple to do (at
> least under Unix) if we pass -L* -l* *.a directly to the link command.
>
> Would this be worthwhile?

Yes.

My only reservation is that users may then expect all compiler/linker 
flags to work, not just -L/-l

 	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



[Rd] R CMD SHLIB
Thomas Lumley