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
  [EMAIL PROTECTED]               |  (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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to