Re: 3 aap suggestions

Bram Moolenaar <[email protected]> Tue, 29 Nov 2005 11:15:10 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Pavol Juhas wrote:

> > > ...
> > > > > > > (1) aap is not using correct linker when linking c++ object=
s.
> > > ...
> > > > > > > Can this be fixed so that aap uses g++ as a linker when lin=
king
> > > > > > > c++ objects?
> >=20
> > [...]
> >=20
> > > A simpler way of telling aap to use g++ to link from hello.o is=20
> > > to add "LD=3D$CXXSHLINK" to main.app.
> >=20
> > Yes, but then all programs will use that linker.  It would be nice if
> > you can build both C and C++ programs automatically.
>=20
> For sure it would.  Well, I found another mystery - for main.aap with
>     LD=3D$CXX
>     :program hello : hello.cpp
> the object-build works (aap; rm hello; aap), but if I add :usetool gcc
> to the begining, object-build stops working (clean build works).
> That happens with both the original and patched usetool. =20

What is the problem then?

If setting both $LD and ":usetool gcc", what would the writer of the
recipe have intended?  I would guess he wants to use gcc but with a
different linker.

> > > In any case, I suggest to use the import code from my patch,=20
> > > otherwise there would be the same problem as with :usetool - the=20
> > > default tools will not be available as soon as user defines any=20
> > > custom tool in ~/.aap/tools.
> >=20
> > OK.  Can you make a patch for that?
> yep, it is attached.

Thanks!

I'll release a new version soon, so everybody can try it out.

--=20
"The amigos also appear to be guilty of not citing the work of others who=
 had
gone before them.  Even worse, they have a chapter about modeling time an=
d
space without making a single reference to Star Trek!"
			(Scott Ambler, reviewing the UML User Guide)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \=
\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ =
\\\
\\\        download, build and distribute -- http://www.A-A-P.org        =
///
 \\\            help me help AIDS victims -- http://www.ICCF.nl         /=
//


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick