Re: -dlopen self and optimizing away symbols

2006-08-16 Thread Ralf Wildenhues
* Albert Chin wrote on Thu, Aug 17, 2006 at 07:55:14AM CEST: > On Thu, Aug 17, 2006 at 07:42:00AM +0200, Ralf Wildenhues wrote: > > > But say, why is -Wl,-E not passed to the link line? It should be > > export_dynamic_flag_spec. And it should have the desired effect: > > | -E Mark a

Re: -dlopen self and optimizing away symbols

2006-08-16 Thread Albert Chin
On Thu, Aug 17, 2006 at 07:42:00AM +0200, Ralf Wildenhues wrote: > * Albert Chin wrote on Thu, Aug 17, 2006 at 12:39:25AM CEST: > > Just built openldap-2.3.25 on HP-UX 11.23/IA. 'make check' fails > > because a symbol wasn't available in the main binary which dlopen()'ed > > a module that required

Re: -dlopen self and optimizing away symbols

2006-08-16 Thread Ralf Wildenhues
Hello Albert, * Albert Chin wrote on Thu, Aug 17, 2006 at 12:39:25AM CEST: > Just built openldap-2.3.25 on HP-UX 11.23/IA. 'make check' fails > because a symbol wasn't available in the main binary which dlopen()'ed > a module that required the symbol. The main binary was built with > "-dlopen self

-dlopen self and optimizing away symbols

2006-08-16 Thread Albert Chin
Just built openldap-2.3.25 on HP-UX 11.23/IA. 'make check' fails because a symbol wasn't available in the main binary which dlopen()'ed a module that required the symbol. The main binary was built with "-dlopen self". The problem is, after the symbols were extracted from all .o objects that compris

Re: Problem with '-L' switch.

2006-08-16 Thread Ralf Wildenhues
Hello Vaclav, Please keep the mailing list in Cc:. Thanks. * Vaclav Havlik wrote on Wed, Aug 16, 2006 at 04:28:06PM CEST: > > > /bin/sh ~/work/PAS/libtool --debug --tag=CXX --mode=link g++ -Wall -g > -D_REENTRANT -D_FILE_OFFSET_BITS=64 -pedantic -Wno-long-long -L../../lib > -L/opt/pas/lib -L/

Re: Problem with '-L' switch.

2006-08-16 Thread Ralf Wildenhues
Hello Vaclav, * Vaclav Havlik wrote on Wed, Aug 16, 2006 at 03:42:17PM CEST: > I build a library with libtool, say libbig.la, from C++ sources, on > IA32. This libbig.la wants to link to libsmall.la as '-lsmall' . But, > during creating libbig.la, g++ has '-L/usr/lib' before my (user's) > paths, w

Problem with '-L' switch.

2006-08-16 Thread Vaclav Havlik
Hello. Can you advise me on this, please? I build a library with libtool, say libbig.la, from C++ sources, on IA32. This libbig.la wants to link to libsmall.la as '-lsmall' . But, during creating libbig.la, g++ has '-L/usr/lib' before my (user's) paths, which is undesitable in my situation. This