Hi,

On 26-Feb-2000 Ossama Othman wrote:
> I did just realize that the compiler options passed to libtool during
> the link phase are being stripped from the link command.  For example:
> 
>    bin/sh ../libtool --tag=CXX --mode=link c++  -W -Wall -Wpointer-arith 
>-fno-implicit-templates  -g -O2 -pthread -pipe -O3  
-o libACE.la
> -rpath /usr/local/lib    -version-info 5:14:0 Basic_Types.lo OS.lo ... -lrt -ldl 
> 
> becomes:
> 
>    c++ -shared -nostdlib  /usr/lib/crti.o 
>/usr/lib/gcc-lib/i386-linux/2.95.2/crtbeginS.o  .libs/Basic_Types.o .libs/OS.o ...
> -L/usr/lib/gcc-lib/i386-linux/2.95.2 -lrt -ldl -lstdc++ -lm -lc -lgcc -lc 
>/usr/lib/gcc-lib/i386-linux/2.95.2/crtendS.o /usr/l
ib/crtn.o 
> -Wl,-soname -Wl,libACE.so.5 -o .libs/libACE.so.5.0.14
> 
> This is clearly busted.  I'm working on this problem.  Bob, I wonder
> if this is the cause of your C++ exception problems.  Are you passing
> some sort of exception flag at link time?

 I wonder why automake passes CFLAGS and AM_CFLAGS
 to libtool in link mode? This makes it impossible
 to differentiate between compiler and linker (LDFLAGS)
 flags.

 I think automake should only pass LDFLAGS to libtool
 and libtool should then add all not libtool-specific flags
 to the link command.

Thomas Tanner -------------------------
email: tanner@(ffii.org|gnu.org|gmx.de)
web:   http://home.pages.de/~tanner/
UMI:   http://umi.ffii.org/

Reply via email to