gcc 3.4.2

我試著把系統裡面一些常常跑,吃資源的程式改用 gcc34 重新編過…

其中 CFLAGS 改用 -march=pentium3 -O -pipe -mfpmath=sse,由於某些 ports 會硬設 CFLAGS,所以我把 /etc/make.conf 改成:

.if $(CC) == “gcc34”
CFLAGS= -march=pentium3 -O -pipe -mfpmath=sse
COPTFLAGS= -march=pentium3 -O -pipe -mfpmath=sse
.else
CPUTYPE= p3
CFLAGS= -O -pipe
COPTFLAGS= -O -pipe
.endif

然後用 portupgrade -f -M "CC=gcc34 CXX=g++34" port_name 升級。

目前我先把 spamassassin (/usr/ports/mail/p5-Mail-SpamAssassin) 以及 zh-mutt (/usr/ports/chinese/mutt) 換掉了,先跑一陣子看看,沒問題的話就來換 Perl,再來換 innd。