[csw-maintainers] Building postgresql-8.4.1

Philip Brown phil at bolthole.com
Tue Nov 17 19:00:49 CET 2009


On Tue, Nov 17, 2009 at 9:50 AM, Maciej (Matchek) Blizinski
<maciej at opencsw.org> wrote:
>
> References:
> ...
> http://en.wikipedia.org/wiki/CPPFLAGS

ooo, i learned something today.

CFLAGS is officially for compiling *and linking* C code.
I thought it was only for compiling. so adding -L/-R and other arcane
stuff to CFLAGS is not technically improper.

(Reason I mention this is that I usually add those to LDFLAGS.. but
there was ONE program, that would not compile nicely unless I added
something to CFLAGS when I thought I could only put it in LDFLAGS.
The program was still wrong for not respecting LDFLAGS :-} but at
least i feel better about the workaround now ;-)

Although in retrospect, if CFLAGS is for linking also, I wonder why
GNUheads decided to start using CCLDFLAGS recently? Grrr...


More information about the maintainers mailing list