On Mon, May 21, 2001 at 03:29:11PM -0700, Daniel Jacobowitz wrote: >perl -MExtUtils::Embed -e ldopts currently gives me this: > >-rdynamic -L/usr/local/lib /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a \ > -L/usr/lib/perl/5.6.1/CORE -lperl -ldl -lm -lc -lcrypt > >For one thing, I don't really know why it wants to give us -L/usr/local/lib, >but that's ok. I can live with that. [...]
The upstream Configure adds -L/usr/local/lib to ldflags which I've retained, as users may wish to build local modules/embedded programs in against libs in /usr/local/lib. >[...] DynaLoader, however, is a problem - >it's not PIC, but libperl is. I'd much rather keep modperl entirely PIC, >and this is what seems to be stopping me at present. Any ideas? DynaLoader.a contains a single file, DynaLoader.o which is used to provide a portable interface to dynamic loading (uses dlopen() here) and is compiled with -fPIC. Regards, -- Brendan O'Dea [email protected] Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633

