libtool and OBJSUF
Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Consider the following recipe:
:import libtool
:filetype
suffix t t
:action compile ltobject t
:sys cp $source `sufreplace("","_f.c",source)`
:do compile `sufreplace("","_f.c",source)`
:route t ltobject
compile
:ltlib foo.la : bar.t { filetype = t } { var_OBJSUF=_f.o }
There's a few things wrong with it, but primarily, the libtool commands ignore
var_OBJSUF, as AAP shows me dependencies like this:
Aap: 4 - Using dependency "build-FreeBSD4_9_RC/bar.lo{filetype=ltobject} :
bar.t{filetype=t}{depdir=build-FreeBSD4_9_RC}{var_OBJSUF=_f.o}"
Now if I change ltobject to object and ltlib to program, I get for instance
Aap: 3 - Updating "build-FreeBSD4_9_RC/bar_f.o" from
"bar.t{filetype=t}{var_OBJSUF=_f.o}{depdir=build-FreeBSD4_9_RC}": it doesn't
exist
and the whole thing works as expected. What's wrong in libtool that it does
this (I know, I wrote it and ought to know) ?
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54