Re: libpq++ build problems
От | Bruce Momjian |
---|---|
Тема | Re: libpq++ build problems |
Дата | |
Msg-id | 200207031947.g63Jllg28352@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: libpq++ build problems (jtv <jtv@xs4all.nl>) |
Ответы |
Re: libpq++ build problems
Re: libpq++ build problems |
Список | pgsql-hackers |
jtv wrote: > On Wed, Jul 03, 2002 at 01:45:56PM -0400, Bruce Momjian wrote: > > > > Actually, I am confused. In src/template/freebsd I see: > > > > CFLAGS='-pipe' > > > > case $host_cpu in > > alpha*) CFLAGS="$CFLAGS -O";; > > i386*) CFLAGS="$CFLAGS -O2";; > > esac > > > > so why is he seeing the -O2 flag on FreeBSD/alpha? > > Probably because CXXFLAGS still has -O2 set. Interesting. I thought -O2 was only set in /template files, but I now see it is set in configure too. The following patch fixes the libpqxx compile problem on FreeBSD/alpha. The old code set -O2 for FreeBSD/i386, but that is already set earlier. The new patch just updates the FreeBSD/alpha compile. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 Index: src/template/freebsd =================================================================== RCS file: /cvsroot/pgsql/src/template/freebsd,v retrieving revision 1.10 diff -c -r1.10 freebsd *** src/template/freebsd 16 Nov 2000 05:51:07 -0000 1.10 --- src/template/freebsd 3 Jul 2002 19:45:14 -0000 *************** *** 1,7 **** CFLAGS='-pipe' ! case $host_cpu in ! alpha*) CFLAGS="$CFLAGS -O";; ! i386*) CFLAGS="$CFLAGS -O2";; ! esac ! --- 1,6 ---- CFLAGS='-pipe' ! if [ `expr "$host_cpu" : "alpha"` -ge 5 ] ! then CFLAGS="$CFLAGS -O" ! CXXFLAGS="$CFLAGS -O" ! fi
В списке pgsql-hackers по дате отправления: