On 2005-09-21, Peter O'Gorman <[EMAIL PROTECTED]> wrote: > IIRC, archive_cmds on openbsd does not use -nostdlib, so having empty > postdeps ought to be okay.
It looks like the problem is that "g++ -shared" doesn't link to libstdc++. Here's the output from my original message (except wrapped for your viewing pleasure): g++ -shared -v /dev/null 2>&1|grep "\-L" [...] On an x86 OpenBSD 3.7 box with g++ 3.3.5 this gives: /usr/lib/gcc-lib/i386-unknown-openbsd3.7/3.3.5/collect2 --eh-frame-hdr -shared -Bdynamic -dynamic-linker /usr/libexec/ld.so /usr/lib/crtbeginS.o -L/usr/lib/gcc-lib/i386-unknown-openbsd3.7/3.3.5 /dev/null -lsupc++ -lgcc -lgcc /usr/lib/crtendS.o Note: -lsupc++ instead of -lstdc++. Without the -shared, the output *does* contain -lstdc++. So using "g++ -shared" to do the link means my module doesn't depend on libstdc++. With dlopen from a C++ program that would be OK, as the program would pull in libstdc++, but dlopen from a C program fails. Cheers, Olly _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool