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.

Nick

Reply via email to