libtool
[Top][All Lists]
Advanced

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

Re: libtool.m4 not always copied


From: Richard Purdie
Subject: Re: libtool.m4 not always copied
Date: Wed, 16 Apr 2008 23:38:15 +0100

On Wed, 2008-04-16 at 23:56 +0200, Ralf Wildenhues wrote:
> * Richard Purdie wrote on Wed, Apr 16, 2008 at 07:10:54PM CEST:
> > To 'fix' the echo issue I added:
> > 
> > http://svn.o-hand.com/view/poky/trunk/meta/packages/libpng/libpng-1.2.16/makefile_fix.patch?rev=4267&view=markup
> > 
> > although I suspect echo = @ECHO@ might be better. I think libpng has
> > relied on old libtool behaviour which happened to export that and no
> > longer does so its a libpng bug but I'm open to more informed comments!
> 
> Sorry, but your patch just hides the real bug that you're using macro
> files from Libtool 1.5.x.  You will see other, more obscure bugs (but
> then again, with their nature of being obscure, you may not see them,
> but curse a lot about how broken Libtool is).
> 
> Please drop the patch and get updated macros into your tree.

I am not using 1.5 macros. libtool 2.2.2 is being used, as I can see if
I grep aclocal.m4 or ltmain.sh for the libtool version.

Let me try again to explain the problem. Makefile.am contains:

        $(ECHO) address@hidden@@address@hidden '{global:' > address@hidden
        $(SED) s/$$/\;/ libpng.sym >> address@hidden
        $(ECHO) 'local: *; };' >> address@hidden

automake expands ECHO_C, ECHO_N, ECHO_T and lt_ECHO but not ECHO
anymore. libtool 1.5 macros happened to let ECHO be expanded but in
2.2.2 this is lt_ECHO.

Since nothing expands ECHO anymore this breaks with libtool 2.2.2.

I think that libpng is in the wrong here though and it therefore needs
to add something to the Makefile.am to cause ECHO to expand.

Cheers,

Richard







reply via email to

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