Re: [PATCH 2/3] add basic lua infrastructure
- From
Jeff King <peff@peff.net>
- Date
- Sep 25, 2012, 03:42 UTC
- Message-ID
- <20120925034211.GC3656@sigill.intra.peff.net>
- In-Reply-To
- <robbat2-20120925T032006-952720661Z@orbis-terrarum.net>
On Tue, Sep 25, 2012 at 03:21:10AM +0000, Robin H. Johnson wrote:
Show 7 quoted lines
> On Mon, Sep 24, 2012 at 08:25:12PM -0400, Jeff King wrote: > > +ifdef USE_LUA > > + BASIC_CFLAGS += -DUSE_LUA `pkg-config --cflags lua5.2` > > + EXTLIBS += `pkg-config --libs lua5.2` > > +endif > Can you please hoist the packagename out to a variable? It's just plain > "lua" on Gentoo.
Yeah. I mentioned these patches were very rough, but I didn't go into detail on all the bad points. That is definitely one of them. I have no idea what the "normal" name is; my debian system sticks the version number in to allow multiple concurrent versions.
I was hoping somebody with more Lua experience could tell me what's usual. It would be nice if it just worked out of the box as soon as you said USE_LUA, but that may not be realistic.
-Peff