[Top][All Lists]

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

Re: [Fakeroot PATCH] Use transformed library name while testing.

From: Ralf Wildenhues
Subject: Re: [Fakeroot PATCH] Use transformed library name while testing.
Date: Sat, 14 Mar 2009 12:44:24 +0100
User-agent: Mutt/1.5.18 (2008-05-17)


I found this old mail:

* Akim Demaille wrote on Wed, Dec 10, 2008 at 10:00:48AM CET:
> Le 9 déc. 08 à 23:57, Clint Adams a écrit :
> [For the automake guys, the question is whether it's possible to have a 
> computed name for a (libtool) library.]
>> On Tue, Dec 09, 2008 at 10:44:44PM +0100, Akim Demaille wrote:
>>> I have written this because that's how it appears in the script  
>>> itself,
>>> see
>>> address@hidden@@DLSUFFIX@
>>> and in scripts/Makefile:
>>> do_subst = sed -e 's,address@hidden@],$(prefix),g' \
>>>        -e 's,address@hidden@],$(bindir),g' \
>>>        -e 's,address@hidden@],$(libdir),g' \
>>>        -e 's,address@hidden@],'`echo fakeroot | sed -e '$
>>> (transform)'`',g' \
>>> But you are right, afaict, the top level does not try to
>>> transform the lib name, so script/ can also be simplified.
>> Ah, hmm.  The libraries are transformed as part of the Debian package 
>> build since the `make install` doesn't do it, so of course this is a
>> bug in scripts/*, but one that works for a single case.
>> Can libtool be bent to do this easily so I can make it consistent?
> I have no idea.  Actually, I doubt it :(

I'm not fully sure what you're trying to do, but the following works,
and may be sufficient for you.  I'm not sure yet whether it works just
by accident or on purpose.
  AC_SUBST([libname], [foo])
  address@hidden@_la_SOURCES = foo.c

For otherwise computed library names, you will likely need to use
EXTRA_LTLIBRARIES and list the possible literal names there.

Hope that helps.


reply via email to

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