Still a few flaws in configure's default CFLAGS

Still a few flaws in configure's default CFLAGS

Post by peter_ » Fri, 17 Oct 2003 16:45:44


Tom Lane writes:


The philosophy of the autotools is to give power to the experienced user
(you can set your own CFLAGS) and to give portable defaults to everyone
else (-O is technically not portable). Another contributing factor is
that the default stems from a different era, one might say, and has been
the same for a long time, and changing it now would probably upset as many
people as it would please.

In other news, if you don't like what autoconf does and you are confident
about what your compiler can handle, you are free to set up a
config.status file or set CFLAGS in your environment.

--
Peter Eisentraut XXXX@XXXXX.COM


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

Still a few flaws in configure's default CFLAGS

Post by tgl » Fri, 17 Oct 2003 23:28:18

Peter Eisentraut < XXXX@XXXXX.COM > writes:


It'd be nicer if they had tried to give *useful* defaults to everyone else.
The existing behavior is reasonable for people testing beta-quality
software, but it's not a helpful choice for production code. It's great
that someone who knows what they're doing can override it, but right now
I'm concerned with the default build behavior for people who don't know.


FWIW, I've been overriding the default CFLAGS to be -O for non-gcc in
libjpeg's configure script since [...digs...] release 6b of March 1998.
I've yet to hear any complaint about it, and that code is used on a much
wider variety of systems than Postgres runs on. So my opinion is that
-O is perfectly portable and unlikely to upset anyone for production
code --- especially when configure advertises a switch to select -g
instead.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to XXXX@XXXXX.COM )

 
 
 

Still a few flaws in configure's default CFLAGS

Post by peter_ » Sat, 25 Oct 2003 21:47:17

Tom Lane writes:


You do realize that as of now, -g is the default for gcc? Was that the
intent?

--
Peter Eisentraut XXXX@XXXXX.COM


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

http://www.yqcomputer.com/