Subject: Re: Perl package modification
To: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-pkg
Date: 04/13/2001 11:50:15
On Sat, 7 Apr 2001, Emmanuel Dreyfus wrote:
: I already asked this a few days ago and got no answer. In order to make
: Xerces-P working, we need to modify the Perl package. This is about
: changing the link command for the perl executable from this:
:
: gcc -L/usr/pkg/lib -Wl,-E -Wl,-R/usr/pkg/lib -o perl perlmain.o
: lib/auto/DynaLoader/DynaLoader.a libperl.a `cat ext.libs` -lm -lcrypt
:
: To this:
:
: c++ -Wl,-whole-archive -lgcc -Wl,-no-whole-archive -L/usr/pkg/lib -Wl,-E
: -Wl,-R/usr/pkg/lib -o perl perlmain.o lib/auto/DynaLoader/DynaLoader.a
: libperl.a `cat ext.libs` -lm -lcrypt
:
: Basically this includes all symbols from libgcc.a in the perl
: executable, including c++ specific symbols.
If you change "c++" back to "cc" here, I'm happy with it. The use of "c++"
will include libstdc++, which /usr/pkg/bin/perl should *not* depend on. Use
shlib dependencies for that.
Part of the new toolchain will include a PIC-compiled libgcc for purposes
just like these.
--
-- Todd Vierling <tv@wasabisystems.com> * Wasabi NetBSD: Run with it.
-- NetBSD 1.5 now available on CD-ROM -- http://www.wasabisystems.com/