SPAM: Re: [OPEN-ILS-DEV] Debian version/GCC version

Bill Erickson billserickson at gmail.com
Tue Feb 20 00:15:49 EST 2007


On 2/19/07, Mike Rylander <mrylander at gmail.com> wrote:
>
>
> >
> > The guys here [1] suggest using pkg-config to find the apr build flags.
> > E.g.:
> >
> > % pkg-config --cflags apr-1
> >
> > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
> > -I/usr/include/apr- 1.0
> >
> > We could just add pkg-config as a dependency and add the `pkg-config
> > --cflags apr-1` to the makefile when necessary.
>
> I don't like that at all.  This is exactly the job that
> autoconf/automake are meant for,


Sure, but in the mean time, it's also what pkg-config is meant for.

and adding YAD that won't work on
> many, if not most, systems sounds like a BadIdea(tm).


Hmm.  Why won't it work on most systems?  It supposedly works on *NIX, Mac,
and (*cough*) Windows and is designed to be used for just such purposes:

gcc -o test test.c `pkg-config --libs --cflags glib-2.0`

 I wasn't proposing a hack... ;)

For now, I
> think we should have 'make' pull in any CFLAGS environment vars and
> specify that _LARGEFILE64_SOURCE is required on 32 bit machines.


Yep, that's fine with me too.


-- 
Bill Erickson
PINES Systems Developer
Georgia Public Library Service
billserickson at gmail.com
http://open-ils.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.georgialibraries.org/pipermail/open-ils-dev/attachments/20070220/cee3aae1/attachment.html


More information about the Open-ils-dev mailing list