[Rd] bin/Shlib overrides the variable PKG_LIBS from Makevars

From: Mstislav Elagin <elagin_at_wias-berlin.de>
Date: Fri 24 Nov 2006 - 16:17:40 GMT


Dear developers,

I have got a problem building my shared library via R CMD SHLIB (R 2.4.0 under WinXP), although it worked on R 2.3.0.

I tracked the problem down to the file $(R_HOME)/bin/Shlib that generates the variable PKG_LIBS and passes it to make on the command line thus overriding the value specified in Makevars.

I consider this behaviour a bug :), since it is apparently not documented and, moreover, "Writing R Extensions" states that PKG_LIBS may be used in Makevars to pass additional parameters to the linker.

Of course, it is possible to put my custom parameters in the variable EXTRA_LIBS, but this way is not documented either.

WBR
Mstislav Elagin



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Nov 25 03:20:57 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 24 Nov 2006 - 17:30:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.