Re: libtool and OBJSUF

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Adriaan de Groot wrote:

> 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:

For "ltobject" you need to use var_LTOBJSUF.  Or use a {objectsuffix}
attribute on the command:

	:ltlib {objectsuffix = _f.o} foo.la : bar.t

BTW: I tried reproducing it, but my "libtool --version" replies:

	ltmain.sh (GNU libtool) 1.3.4-freebsd-ports (1.385.2.196 1999/12/07 21:47:57

Tricky: there is another one called "libtool15":

	ltmain.sh (GNU libtool) 1.5 (1.1220 2003/04/05 19:32:58)

Shall we add "libtool15" to the list of libtools to be searched for?
This is the default name on FreeBSD.

Oh, and add "2>&1" to avoid the message "./libtool: not found":

            :syseval $libtool --version 2>&1 | :assign libtool_ver

-- 
LAUNCELOT: At last!   A call!  A cry of distress ...
           (he draws his sword, and turns to CONCORDE)
           Concorde!  Brave, Concorde ... you shall not have died in vain!
CONCORDE:  I'm not quite dead, sir ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.