Hallo Ralf, On 22 Apr 2008, at 15:43, Ralf Wildenhues wrote:
* Richard Purdie wrote on Tue, Apr 22, 2008 at 12:29:50PM CEST:I've noticed another problem with two packages in poky, prelink andlibvorbis. Both packages have areas where LDFLAGS="-all-static" is used.The problem comes about since Poky sets CC to "ccache gcc", then libtoolputs the -static flag between ccache and gcc.Thanks for the bug report, and especially for providing an example to reproduce it!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.aConfirmed. Fixed as below, committed, put you in THANKS. Cheers, Ralf 2008-04-22 Ralf Wildenhues <[EMAIL PROTECTED]> Fix regression over 1.5.26 with ccache $CC -all-static. * libltdl/config/ltmain.m4sh (func_mode_link): Add $link_static_flag to compile_command and link_command only later, instead of right after a possible compiler wrapper. * tests/static.at (ccache -all-static): New test. * THANKS: Update. Report by Richard Purdie.
abs_srcdir=`CDPATH="${ZSH_VERSION+.}:" && cd .. && pwd`; cd tests; \ CONFIG_SHELL="/bin/sh" /bin/sh $abs_srcdir/tests/testsuite \MAKE="make" CC="gcc" CFLAGS="-g -O2" CPP="gcc -E" CPPFLAGS="" LD="/ usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld" LDFLAGS="" LIBS="" LN_S="ln -s" NM="/usr/bin/nm -p" RANLIB="ranlib" STRIP="strip" OBJEXT="o" EXEEXT="" SHELL="/bin/sh" CONFIG_SHELL="/bin/sh" CXX="g++" CXXFLAGS="-g -O2" CXXCPP="g++ -E" F77="" FFLAGS="" FC="" FCFLAGS="" GCJ="" GCJFLAGS="-g -O2" _lt_pkgdatadir="/Users/gary/Devo/libtool-- master--0/+build/.." LIBTOOLIZE="/Users/gary/Devo/libtool-- master--0/+build/libtoolize" LIBTOOL="/Users/gary/Devo/libtool-- master--0/+build/libtool" tst_aclocaldir="/Users/gary/Devo/libtool-- master--0/+build/../libltdl/m4" -v 27
## -------------------------- ## ## libtool 2.2.3a test suite. ## ## -------------------------- ## 27. static.at:357: testing ... ../../tests/static.at:373: $CC $CPPFLAGS $CFLAGS -c a.c stdout:../../tests/static.at:375: $LIBTOOL --mode=link --tag=CC ./ccache $CC $CFLAGS $LDFLAGS -all-static a.$OBJEXT -o a
--- /dev/null 2008-04-22 18:51:28.000000000 -0400+++ /Users/gary/Devo/libtool--master--0/+build/tests/testsuite.dir/at- stderr 2008-04-22 18:51:32.000000000 -0400
@@ -0,0 +1 @@+libtool: link: warning: complete static linking is impossible in this configuration
stdout: libtool: link: ./ccache gcc -g -O2 a.o -o a 27. static.at:357: FAILED (static.at:375) ## ------------- ## ## Test results. ## ## ------------- ## ERROR: 1 test was run, 1 failed unexpectedly. Cheers, Gary -- ())_. Email me: [EMAIL PROTECTED] ( '/ Read my blog: http://blog.azazil.net / )= ...and my book: http://sources.redhat.com/autobook `(_~)_
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool