On Sunday, June 06, 2010 03:45:51 Michał Górny wrote: > On Sun, 6 Jun 2010 00:17:27 -0400 Mike Frysinger wrote: > > i'm not saying `emake` covers all solutions you proposed, just that > > the base usage isnt nearly as bleak. there are some cases where > > having a wrapper around emake would be useful (such as compiling > > multiple files or linking things in). so if you wanted to slap > > something together, we can look at it further. > > Well, I've already covered one corner case myself, which is the zpaq > ebuild. I would approve a comment on my idea here: > > http://overlays.gentoo.org/proj/sunrise/changeset/10641/sunrise/app-arch/zp > aq/zpaq-1.10.ebuild > > The hard part was that zpaq.cpp had to be compiled to both the execu- > table and the stub object file (with additional -DOPT flag). > > I've decided that the simplest and most fail-proof idea was to create > an additional source file, defining 'OPT' and including the real code, > and compiling all of that within a single 'emake' call.
C/C++ files should always have a newline at the end ... that stub file is currently missing one. i dont know anything about zpaq, but it looks like you're installing the bare .o files ? that's a bit odd. usually things like this are installed as static archives for people to link in ... wrt the emake stuff, that looks fine -mike
signature.asc
Description: This is a digitally signed message part.