aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/template/freebsd9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/template/freebsd b/src/template/freebsd
index 9e92126332b..8f82569cc89 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