Unix Technical Forum

BUG #2072: CPPFLAGS clobbered

This is a discussion on BUG #2072: CPPFLAGS clobbered within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2072 Logged by: Keith Randall Email address: randallk@gmail.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:30 AM
Keith Randall
 
Posts: n/a
Default BUG #2072: CPPFLAGS clobbered


The following bug has been logged online:

Bug reference: 2072
Logged by: Keith Randall
Email address: randallk@gmail.com
PostgreSQL version: 8.1.0
Operating system: Linux
Description: CPPFLAGS clobbered
Details:

In src/template/linux the
CPPFLAGS="-D_GNU_SOURCE"
overrides command-line CPPFLAGS
I change it to
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
and am back in business.

Keith

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:30 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2072: CPPFLAGS clobbered

"Keith Randall" <randallk@gmail.com> writes:
> In src/template/linux the
> CPPFLAGS="-D_GNU_SOURCE"
> overrides command-line CPPFLAGS
> I change it to
> CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
> and am back in business.


That's pretty much entirely the wrong way to fix it; or at least it's
inconsistent with the way we handle CFLAGS etc, and doing it this way
would require touching every template not only linux.

I'm thinking that configure.in should handle template CPPFLAGS settings
the same way it handles CFLAGS, ie, command line settings override the
template. Probably LDFLAGS too.

BTW, why do you feel a need to override CPPFLAGS in the first place?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com