Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:gentoo-spezifisch:make.conf

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
linux:gentoo-spezifisch:make.conf [15.03.2011 12:33]
marc
linux:gentoo-spezifisch:make.conf [09.07.2013 21:33] (aktuell)
Zeile 11: Zeile 11:
 ===== 3. CFLAGS ===== ===== 3. CFLAGS =====
  
-  * **safe** (nach Gentoo-Wiki) CFALGS:+Wirklich **sichere** und empfohlene (nach Gentoo-Wiki) CFLAGS sind:
  
   CFLAGS="-O2 -march=native -pipe"   CFLAGS="-O2 -march=native -pipe"
  
-  * Für **graphite** muss zusätzlich %%USE="graphite"%% gesetzt sein:+\\ 
 + 
 +Um das **graphite-Framework** zu nutzen muss zusätzlich ''%%USE="graphite"%%'' für den GCC-Compiler gesetzt sein:
  
   CFLAGS="-floop-interchange -floop-strip-mine -floop-block"   CFLAGS="-floop-interchange -floop-strip-mine -floop-block"
  
-  * Für **lto** muss %%USE="lto"%% gesetzt sein (siehe auch LDFLAGS weiter unten):+Auf meinem ~amd64 mit GCC-4.6 kompiliert und läuft das graphite-Framework stabil, ohne Wertung der Leistung. 
 + 
 +\\ 
 + 
 +Für **lto** muss ''%%USE="lto"%%'' gesetzt sein (siehe auch LDFLAGS):
  
   CFLAGS="-flto"   CFLAGS="-flto"
  
-  * auf ~amd64 mit GCC-4.5 / GCC-4.6 mit %%USE="graphite"%% Anfang 2011 **bei mir stabil**:+\\
  
-  CFLAGS="-O2 -march=native -pipe +Abschließend CFLAGS auch als CXXFLAGS setzen:
-  -floop-interchange -floop-strip-mine -floop-block +
-  -ftree-vectorize -ftree-loop-linear"+
  
-Anschließend CFLAGS auch als CXXFLAGS nutzen: +  CXXFLAGS="${CFLAGS}"
- +
-CXXFLAGS="${CFLAGS}"+
  
 ===== 4. LDFLAGS ===== ===== 4. LDFLAGS =====
  
-  * nach Gentoo-Wiki ist es nicht nötig bzw. vollständig **safe** LDFLAGS zu setzen. Sinnvolle LDFLAGS sind bereits in den entsprechenden Profilen gesetzt. +Laut Gentoo-Wiki ist es nicht nötig bzw. vollständig **sichere** LDFLAGS zu setzen. Sinnvolle LDFLAGS sind bereits in den entsprechenden Profilen gesetzt. Ich setze ohne feststellbare Probleme / Nachteile:
- +
-  * Ich setze ohne feststellbare Probleme / Nachteile:+
  
   LDFLAGS="${LDFLAGS} -Wl,-z,now -Wl,--hash-style=gnu -Wl,--enable-new-dtags"   LDFLAGS="${LDFLAGS} -Wl,-z,now -Wl,--hash-style=gnu -Wl,--enable-new-dtags"
  
-  * **lto** mit GCC-4.5 experimentell und zumindest im 3Q-2010 nicht zu gebrauchen, %%"-fwhole-program"%% macht zusätzlich Probleme. Bei der Nutzung von lto muss unbestätigten Quellen nach mit sehr großen Binaries gerechnet werden, die oft sämtliche Vorteile (über-)kompensieren. Eventuell ist lto daher nur selektiv für einzelne Programme sinnvoll.+**LTO** ist mit GCC-4.5 experimentell und zumindest im 3Q-2010 nicht zu gebrauchen, ''%%"-fwhole-program"%%'' macht vielen Leuten im Forum zusätzlich Probleme. Bei der Nutzung von LTO muss unbestätigten Quellen nach mit sehr großen Binärdateien gerechnet werden, die oft sämtliche Vorteile (über-)kompensieren. Wahrscheinlich ist LTO daher nur selektiv für einzelne Programme sinnvoll.
  
   LDFLAGS="${LDFLAGS} -flto -fwhole-program"   LDFLAGS="${LDFLAGS} -flto -fwhole-program"
Zeile 48: Zeile 48:
  
  
-=== Anhang ===+===== 5. Anhang =====
  
 Meine make.conf Meine make.conf
Zeile 61: Zeile 61:
 ################################################################### ###################################################################
 # really safe: # really safe:
-#CFLAGS="-O2 -march=native -pipe" +# CFLAGS="-O2 -march=native -pipe" 
- +# -ftree-vectorize -ftree-loop-linear
-AFAIK the short-and-sweet versions: +
-#add to USE "graphite", add to CFLAGS "-floop-interchange -floop-strip-mine -floop-block"+
  
-CFLAGS="-O2 -march=native -pipe +CFLAGS="-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block"
--floop-interchange -floop-strip-mine -floop-block +
--ftree-vectorize -ftree-loop-linear"+
  
 CXXFLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}"
Zeile 82: Zeile 78:
 # profile used for building. # profile used for building.
 USE="64bit X a52 ace acpi additions alsa bash-completion blksha1 cleartype \ USE="64bit X a52 ace acpi additions alsa bash-completion blksha1 cleartype \
-     clutter consolekit corefonts css dbus device-mapper drm dvd exif \ +     consolekit corefonts css dbus device-mapper drm dvd exif fastbuild 
-     fastbuild fastcgi fat ffmpeg fuse gallium gd gdu gnome gphoto2 graphite \ +     fastcgi fat ffmpeg fuse gallium gd gdu gnome gphoto2 graphite gstreamer 
-     gstreamer gtk gtk3 id3tag introspection jpeg jpeg2k lame laptop libffi +     gtk gtk3 id3tag introspection jpeg jpeg2k lame laptop libnotify 
-     libnotify lto matroska mdns-bundled mmx mp3 mpeg mpeg2 nautilus \ +     matroska mdns-bundled mmx mp3 mp4 mpeg mpeg2 nautilus networkmanager 
-     networkmanager nntp nsplugin ntfs opengl optimized-qmake pdf pidgin png \ +     nntp nsplugin ntfs opengl optimization optimized-qmake pdf pidgin png \ 
-     policykit pulseaudio quicktime rar real scsi slideshow smp sse sse2 +     policykit pulseaudio python3 quicktime rar real scsi slideshow smp sse \ 
-     sse3 svg symlink system-cxx-headers system-sqlite theora threads +     sse2 sse3 strong-optimization svg symlink system-cxx-headers 
-     truetype twolame type3 udev usb vcd video wicd wma wmf x264 xv xvid +     system-sqlite theora threads truetype twolame type3 udev usb v4l v4l2 \ 
-     -3dnow -3dnowext -abiword -accessibility -aim -avahi -bluetooth -bonobo +     vcd video vorbis wicd wma wmf x264 xv xvid -3dnow -3dnowext -abiword 
-     -debug -doc -eds -gecko-mediaplayer -gnome-keyring -guile -ieee1394 +     -accessibility -aim -avahi -bluetooth -bonobo -debug -doc -eds 
-     -ipod -ipv6 -joystick -kde -lcms -lirc -mercurial -msn -oss -pm-utils +     -gecko-mediaplayer -guile -ieee1394 -ipod -ipv6 -joystick -kde -lcms 
-     -qt-bundled -qt3support -qt4 -reiser4 -reiserfs -samba -tcl -totem -v4l \ +     -lirc -mercurial -msn -oss -pm-utils -python2 -qt-bundled -qt3support 
-     -v4l2 -webdav -webdav-neon -webdav-serf -webkit -xfs -xinerama"+     -qt4 -reiser4 -reiserfs -samba -tcl -totem -webdav -webdav-neon 
 +     -webdav-serf -webkit -xfs -xinerama -xscreensaver"
  
 ################################################################### ###################################################################
-MAKEOPTS="-j5+#MAKEOPTS="-j1" 
-EMERGE_DEFAULT_OPTS="--keep-going --jobs=5"+MAKEOPTS="-j3
 +EMERGE_DEFAULT_OPTS="--keep-going --jobs=4"
  
 #GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo " #GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
Zeile 106: Zeile 104:
 SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
  
-PORTAGE_NICENESS=15+PORTAGE_NICENESS=19
  
 #FEATURES="parallel-fetch fail-clean" #FEATURES="parallel-fetch fail-clean"
Zeile 129: Zeile 127:
 ACCEPT_KEYWORDS="~amd64" ACCEPT_KEYWORDS="~amd64"
  
-ACCEPT_LICENSE="PUEL dlj-1.1 googleearth AdobeFlash-10.1"+ACCEPT_LICENSE="PUEL dlj-1.1 googleearth AdobeFlash-10.1 google-talkplugin skype-eula"
  
 I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1 I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1
linux/gentoo-spezifisch/make.conf.1300188782.txt.gz · Zuletzt geändert: 09.07.2013 21:32 (Externe Bearbeitung)