When I configure PG using:

CC=cc CXX=CC ./configure  --prefix=/home/ler/pg-test --enable-syslog --with-CXX --with-perl --enable-multibyte --with-includes=/usr/local/include --with-libs=/usr/local/lib

CC doesn't see the -O flag.


CC -g -K PIC -I/usr/local/include -I../../../src/include -I../../../src/interfaces/libpq  -c -o pgconnection.o pgconnection.cc
CC -g -K PIC -I/usr/local/include -I../../../src/include -I../../../src/interfaces/libpq  -c -o pgdatabase.o pgdatabase.cc
CC -g -K PIC -I/usr/local/include -I../../../src/include -I../../../src/interfaces/libpq  -c -o pgtransdb.o pgtransdb.cc
CC -g -K PIC -I/usr/local/include -I../../../src/include -I../../../src/interfaces/libpq  -c -o pgcursordb.o pgcursordb.cc
CC -g -K PIC -I/usr/local/include -I../../../src/include -I../../../src/interfaces/libpq  -c -o pglobject.o pglobject.cc
CC -G -Wl,-z,text -o libpq++.so.3.1 pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o  -L/usr/local/lib -L../../../src/interfaces/libpq -lpq -Wl,-R/home/ler/pg-test/lib

Why? 
-- 
Larry Rosenman                      http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Sun, 29 Oct 2000 09:20:30 -0600
Larry Rosenman <ler@lerctr.org>
CC not getting -O passed?
* Peter Eisentraut <peter_e@gmx.net> [001029 14:58]:
> Larry Rosenman writes:
> 
> > CC doesn't see the -O flag.
> > Why? 
> 
> Because C++ is not C.  You can specify the flags manually with
> CXXFLAGS=...
BUT, we default C to -O, why not C++? 


> 
> -- 
> Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/

-- 
Larry Rosenman                      http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Sun, 29 Oct 2000 15:01:47 -0600
Larry Rosenman <ler@lerctr.org>
Re: CC not getting -O passed?
* Peter Eisentraut <peter_e@gmx.net> [001030 10:53]:
> Larry Rosenman writes:
> 
> > BUT, we default C to -O, why not C++? 
> 
> Basically because we haven't done it yet.  I'm not sure whether we're
> going beta anytime soon, if not it'll probably get implemented.
My impression was REAL SOON NOW....
> 
> -- 
> Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/

-- 
Larry Rosenman                      http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Mon, 30 Oct 2000 10:55:10 -0600
Larry Rosenman <ler@lerctr.org>
Re: CC not getting -O passed?
Larry Rosenman writes:

> BUT, we default C to -O, why not C++? 

Basically because we haven't done it yet.  I'm not sure whether we're
going beta anytime soon, if not it'll probably get implemented.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


Mon, 30 Oct 2000 17:58:16 +0100 (CET)
Peter Eisentraut <peter_e@gmx.net>
Re: CC not getting -O passed?