From: Bruce Momjian Date: Wed, 3 Jul 2002 19:48:26 +0000 (+0000) Subject: Update FreeBSD template to properly compile c++ on alpha. X-Git-Tag: REL7_3~1261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d656c249b3c5821a46cd45339e28acfbe9290c05;p=postgresql Update FreeBSD template to properly compile c++ on alpha. --- diff --git a/src/template/freebsd b/src/template/freebsd index 9e92126332..8f82569cc8 100644 --- a/src/template/freebsd +++ b/src/template/freebsd @@ -1,7 +1,6 @@ CFLAGS='-pipe' -case $host_cpu in - alpha*) CFLAGS="$CFLAGS -O";; - i386*) CFLAGS="$CFLAGS -O2";; -esac - +if [ `expr "$host_cpu" : "alpha"` -ge 5 ] +then CFLAGS="$CFLAGS -O" + CXXFLAGS="$CFLAGS -O" +fi