On 5/21/13 9:34 AM, Nick Wellnhofer wrote:
On 21/05/2013 05:05, Peter Karman wrote:
The beauty of the new C implementation has me wanting a pkg-config
script so I
can do:

  % cc `lucy-config --cflags` `lucy-config --libs` myapp.c -o myapp

Any objections to such a thing? I think it could be wired into/from
install.sh
pretty squarely. /me happy to gin one up.

That would be nice. I think the preferred way these days is to install a
pkg-config metadata file (.pc) and then run:

     $ cc myapp.c $(pkg-config --cflags --libs lucy) -o myapp

Also note that on some systems (GNU ld?), the C source file has to come
before the -l flag. This has bitten me a few times.



ACK to both

I will work up a lucy.pc file.


--
Peter Karman  .  http://peknet.com/  .  [email protected]

Reply via email to