---- UPDATE ----
Dieses Thread ist in einem Wiki Eintrag aufgegangen.
http://wiki.bsdforen.de/index.php/FreeBSD_-_make.conf_optimieren
-------------------
Da ich eine experimentelle Natur bin, ist in meine /etc/make.conf ist viel Arbeit geflossen. Ich weiß, viele hier halten nicht viel von Optimierungsorgien, aber vielleicht interessiert es doch den einen oder anderen. Angestoßen wurde das ganze übrigens über den make.conf Artikel der BSD-Crew Dresden.
Standardmäßig verwende ich bei den Ports den gcc41. Da einige ports damit nicht bauen, muss ich sie mit dem gcc aus dem Base System bauen. Schwieriger wird es bei Ports die zwar ohne Probleme kompiliert werden können aber dann Probleme bereiten, wie z.B. x11/xorg-libraries. In diesem Fall haben Ports beim Bauen die Version von sdl11-config nicht mehr erkannt.
Andere Ports wie archivers/unzip machen unabhängig vom verwendeten Compiler Probleme mit -O2 oder sogar -O. Unzip mit -O2 erzeugt bei mir aus Archiven nur Dateien der Länge 0.
Dieses Thread ist in einem Wiki Eintrag aufgegangen.
http://wiki.bsdforen.de/index.php/FreeBSD_-_make.conf_optimieren
-------------------
Da ich eine experimentelle Natur bin, ist in meine /etc/make.conf ist viel Arbeit geflossen. Ich weiß, viele hier halten nicht viel von Optimierungsorgien, aber vielleicht interessiert es doch den einen oder anderen. Angestoßen wurde das ganze übrigens über den make.conf Artikel der BSD-Crew Dresden.
Standardmäßig verwende ich bei den Ports den gcc41. Da einige ports damit nicht bauen, muss ich sie mit dem gcc aus dem Base System bauen. Schwieriger wird es bei Ports die zwar ohne Probleme kompiliert werden können aber dann Probleme bereiten, wie z.B. x11/xorg-libraries. In diesem Fall haben Ports beim Bauen die Version von sdl11-config nicht mehr erkannt.
Andere Ports wie archivers/unzip machen unabhängig vom verwendeten Compiler Probleme mit -O2 oder sogar -O. Unzip mit -O2 erzeugt bei mir aus Archiven nur Dateien der Länge 0.
Code:
# ---< compiler settings >-----------------------------------------------------
CPUTYPE?= pentium-m
CFLAGS= -O2 -pipe
# -----------------------------------------------------------------------------
# ---< updating >--------------------------------------------------------------
SUP_UPDATE= yes
DOC_LANG= en_US.ISO8859-1
SUP= /usr/local/bin/cvsup
SUPFLAGS= -g -L 2
SUPHOST= cvsup7.de.freebsd.org
SUPFILE= /usr/local/etc/cvsup/sources
PORTSSUPFILE= /usr/local/etc/cvsup/ports
DOCSUPFILE= /usr/local/etc/cvsup/doc
# Fetching from de sites preferred
MASTER_SORT_REGEX?=://[^/]*\.de[/.]
# For buildkernel
KERNCONF= TPR40
# ---< configure ports >-------------------------------------------------------
.if${.CURDIR:M/usr/ports/*}
# Set gcc version for ports.
CC= gcc41
CXX= g++41
CPP= cpp41
# Build these ports with the compiler provided by the base system.
BASE_BUILD= java/jdk15 \
net/liveMedia \
net/samba-libsmbclient \
net/linc \
x11-toolkits/gtkmm24 \
x11/libgnome \
graphics/gimp \
graphics/inkscape \
games/scummvm \
x11/xorg-libraries \
sysutils/k3b \
devel/sdl12 \
x11-fm/krusader \
print/ghostscript-gnu-nox11 \
x11-toolkits/libbonoboui \
devel/libtool15 \
x11-toolkits/libgnomeui \
security/gnomekeyring
# Build these ports with -O instead of -O2.
WEAK_OPT_BUILD= archivers/unzip
# Build these ports without optimizations.
NO_OPT_BUILD= graphics/png \
graphics/png/work/libpng-1.2.8 \
x11-toolkits/pango
# Common settings that are applied to all ports in hope to do some good.
WITHOUT_ARTS= yes
WITH_IPV6= yes
WITH_MOZILLA= firefox
WITHOUT_DEBUG= yes
WITH_GTK2= yes
# editors/openoffice.org*
.if${.CURDIR:M/usr/ports/editors/openoffice.org*}
LOCALIZED_LANG= en-GB
WITH_TTF_BYTECODE_ENABLED=yes
WITHOUT_JAVA= yes
WITHOUT_MOZILLA= yes
.endif
# x11-toolkits/gtk20
.if${.CURDIR:M/usr/ports/x11-toolkits/gtk20}
WITH_DROPSHADOW= yes
WITH_DEBUG= no
.endif
# x11-wm/fluxbox-devel
.if${.CURDIR:M/usr/ports/x11-wm/fluxbox-devel}
WITHOUT_SLIT= yes
WITH_IMLIB2= yes
.endif
# Check weather building with the base compiler is required.
.for BUILDPATH in ${BASE_BUILD}
.if ${.CURDIR} == /usr/ports/${BUILDPATH}
CC= cc
CXX= c++
CPP= cpp
.endif
.endfor
# Check weather building with weak optimization is required.
.for BUILDPATH in ${WEAK_OPT_BUILD}
.if ${.CURDIR} == /usr/ports/${BUILDPATH}
CFLAGS= -O -pipe
.endif
.endfor
# Check weather building without optimization is required.
.for BUILDPATH in ${NO_OPT_BUILD}
.if ${.CURDIR} == /usr/ports/${BUILDPATH}
CFLAGS= -pipe
.endif
.endfor
.endif
# -----------------------------------------------------------------------------
# added by use.perl 2005-10-19 00:14:47
PERL_VER=5.8.7
PERL_VERSION=5.8.7
Zuletzt bearbeitet: