libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool 2.2.2, ccache and -all-static


From: Richard Purdie
Subject: libtool 2.2.2, ccache and -all-static
Date: Tue, 22 Apr 2008 11:29:50 +0100

Hi,

I've noticed another problem with two packages in poky, prelink and
libvorbis. Both packages have areas where LDFLAGS="-all-static" is used.

The problem comes about since Poky sets CC to "ccache gcc", then libtool
puts the -static flag between ccache and gcc.

To reproduce:

wget http://www.vorbis.com/files/1.0.1/unix/libvorbis-1.0.1.tar.gz
tar -xvzf /usr/oe/sources/libvorbis-1.0.1.tar.gz
cd libvorbis-1.0.1
autoreconf -i
CC="ccache gcc" ./configure
make

which results in:

make[1]: Entering directory `/usr/src/libvorbis-1.0.1/examples'
ccache gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libvorbis\" 
-DVERSION=\"1.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DLT_OBJDIR=\".libs/\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I../include     
-O20 -ffast-math -D_REENTRANT -fsigned-char  -DUSE_MEMORY_H -MT 
decoder_example.o -MD -MP -MF .deps/decoder_example.Tpo -c -o decoder_example.o 
decoder_example.c
mv -f .deps/decoder_example.Tpo .deps/decoder_example.Po
/bin/sh ../libtool --tag=CC   --mode=link ccache gcc  -O20 -ffast-math 
-D_REENTRANT -fsigned-char  -DUSE_MEMORY_H  -all-static -o decoder_example 
decoder_example.o ../lib/libvorbis.la -lm  -logg
libtool: link: ccache -static gcc -O20 -ffast-math -D_REENTRANT -fsigned-char 
-DUSE_MEMORY_H -o decoder_example decoder_example.o  ../lib/.libs/libvorbis.a 
-lm /usr/lib/libogg.a

which then fails with the ccache help message since it doesn't support a
"-static" option. Is it possible to fix this so the flag is properly
handled?

Cheers,

Richard





reply via email to

[Prev in Thread] Current Thread [Next in Thread]