Subject: Re: dlopening a c++ DSO with EH [was Re: Xerces-P link problems]
To: Nick Hudson <skrll@netbsd.org>
From: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
List: tech-toolchain
Date: 04/04/2001 09:08:34
Ok, I managed xerces-P to work correctly, but I had to build perl like
this:

c++  -Wl,-export-dynamic -nostdlib -Wl,-whole-archive -lgcc -lc
-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
/usr/lib/crt0.o 

1) isn't there a cleaner way to include all libgcc.a without -nostdlib
and linking with crt0.o?

2) Do you think this is acceptable to modify the perl package so that
the perl executable is built like this?

-- 
Emmanuel Dreyfus.
NetBSD, parceque je le vaux bien.
p99dreyf@criens.u-psud.fr