Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
post your make.conf
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 11, 12, 13, 14, 15  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
CatBox360
n00b
n00b


Joined: 15 Jul 2010
Posts: 4

PostPosted: Mon Jul 26, 2010 2:52 am    Post subject: Reply with quote

Code:
ceebee@Paws ~ $ cat /etc/make.conf
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
EMERGE_DEFAULT_OPTS="--tree --verbose --nospinner"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/"
SYNC="rsync://rsync5.us.gentoo.org/gentoo-portage"
USE="-ipv6 -hal -minimal -cups -gnome -kde -bluetooth laptop qt4 dbus gtk X mmx sse sse2 ssse3 branding jpeg lock session startup-notification thunar extras sqlite"
INPUT_DEVICES="evdev synaptics keyboard mouse"
VIDEO_CARDS="nvidia"
FEATURES="usersandbox userpriv userfetch parallel-fetch noinfo noman nodoc"
LINGUAS="en en_US"
ACCEPT_LICENSE="*"
ACCEPT_KEYWORDS="~amd64"
source /var/lib/layman/make.conf


My make.conf on my lappy. Really loving gentoo. recently (maybe a month ago) killed the win7 install and started using it full time. It's a challenge sometimes, being a hardcore windows user for so long (USED to play games before they all started to become crap), but overall it's a fun experience.

Any tips on how to tighten that up or nifty things to add would be awesome.
Back to top
View user's profile Send private message
papu
Guru
Guru


Joined: 25 Jan 2008
Posts: 397
Location: Sota algun pi de l'empordà

PostPosted: Mon Sep 06, 2010 10:39 am    Post subject: Reply with quote

Quote:
FLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPS="-j5"

ABI_X86="64 32"

ACCEPT_LICENSE="*"
ACCEPT_KEYWORDS="~amd64"

EMERGE_DEFAULT_OPTS="--autounmask-write=y --complete-graph=y --keep-going -v --with-bdeps=y"

FEATURES="${FEATURES} parallel-fetch nodoc noinfo candy"

INPUT_DEVICES="evdev"

LINGUAS="ca ca_ES"

OVERLAY_CACHE_METHOD="assign"

PORTAGE_ELOG_CLASSES="warn log error"
PORTAGE_ELOG_SYSTEM="echo save"

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="X avx c++0x cairo cdda cups dbus gpm gstreamer icu jpeg jpeg2k kde lcms libnotify lzma nsplugin openal opengl opencl policykit png pulseaudio qt3support
qt4 sdl smp sqlite sse4_1 sse4_2 ssse3 svg vdpau truetype udev -gnome -gtk -gtk3 -handbook -semantic-desktop"

VIDEO_CARDS="fglrx"

source /var/lib/layman/make.conf


adéu.
_________________
--Intel i5 3570k --Asrock z77 ext. 4 --Skill 16GB dd3 --Radeon r9 270 --S.O Gentoo & Win 8.1 64bits


Last edited by papu on Sun Aug 04, 2013 7:46 am; edited 11 times in total
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3748

PostPosted: Mon Sep 06, 2010 12:44 pm    Post subject: Reply with quote

Quote:
are this features not necessary from now?


confcache doesnt exist anymore and it should be preserved-libs IIRC, although im not sure the preserved-rebuild feature is available in 2.1.9.

the make.conf from my eeepc :

Code:
USE_BLOCK="-xscreensaver -tcl -qt4 -esd -oss -kerberos -ldap -zeroconf -theora -fam -berkdb -gdbm -perl -python -ipv6 -acl -tcpd -fam -mng -hal"
USE_SYS="mmx sse sse2 ssse3 bash-completion pic nptl threads java"
USE_MEDIA="a52 dga flac ffmpeg v4l v4l2 networkmanager nautilus policykit samba nsplugin udev ipod applet gphoto2 introspection"

USE="${USE_MEDIA} ${USE_SYS} ${USE_BLOCK}"

CHOST="i686-pc-linux-gnu"
LINGUAS="es es_ES"
INPUT_DEVICES="synaptics evdev"
VIDEO_CARDS="intel"
CLEAN_DELAY="0"
CAMERAS="canon ptp2"
EBEEP_IGNORE="1"
EPAUSE_IGNORE="1"

QEMU_SOFTMMU_TARGETS="arm i386 ppc"
QEMU_USER_TARGETS="arm i386 ppc"

CFLAGS="-march=atom -mtune=atom -O2 -pipe -fomit-frame-pointer -fno-ident \
-floop-interchange -floop-strip-mine -floop-block \
--param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512"

CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
WANT_MP="true"

ACCEPT_KEYWORDS="~x86"
ACCEPT_LICENSE="*"
NPTL_KERNEL_VERSION="2.6.34"

PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_ECLASS_WARNING_ENABLE="0"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="echo"
http_proxy="http://192.168.1.200:8080"
SYNC=rsync://192.168.1.200/portage
GENTOO_MIRRORS="http://192.168.1.200:8080"
PORTDIR_OVERLAY="/usr/local/overlay"

MAKEOPTS="-j3 -s"
AUTOCLEAN="yes"
PORTAGE_TMPFS="/dev/shm"
FEATURES="-distcc parallel-fetch fixpackages noman noinfo nodoc"
EMERGE_DEFAULT_OPTS="--keep-going -q --jobs=2 --fail-clean --quiet-unmerge-warn"
source /var/lib/layman/make.conf


cheers
Back to top
View user's profile Send private message
papu
Guru
Guru


Joined: 25 Jan 2008
Posts: 397
Location: Sota algun pi de l'empordà

PostPosted: Mon Sep 06, 2010 2:55 pm    Post subject: Reply with quote

thanks, it seems that preserved-libs have disappeared from portage, right now.


saludos, adéu.
_________________
--Intel i5 3570k --Asrock z77 ext. 4 --Skill 16GB dd3 --Radeon r9 270 --S.O Gentoo & Win 8.1 64bits
Back to top
View user's profile Send private message
codestation
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2008
Posts: 126
Location: /dev/negi

PostPosted: Mon Sep 06, 2010 3:39 pm    Post subject: Reply with quote

Mine from laptop (my use flags are defined in package.use so i have to clean/merge those global flags someday :roll: )

Code:
CHOST="x86_64-pc-linux-gnu"

CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"

ACCEPT_KEYWORDS="~amd64"

PORTDIR="/usr/portage"
DISTDIR="/mnt/vbox/distfiles"
PKGDIR="/var/portage/packages"

PORT_LOGDIR="/var/log/portage"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_SYSTEM="save mail"
PORTAGE_ELOG_MAILURI="root@localhost localhost"

PORTAGE_NICENESS=12
EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going"
FEATURES="splitdebug userpriv usersandbox"
CONFIG_PROTECT_MASK="/etc/init.d"
MAKEOPTS="-j2"

USE="-32bit -berkdb -fortran -ldap -gnome -mikmod -xulrunner threads pch \
     network-cron ithreads xinerama -qt4 mmap -java -gtk lzma zip \
     scanner custom-optimization gphoto2 fbsplash sndfile tordns \
     fbcondecor fbcon git -handbook subversion sqlite3 glitz gnutls faac faad \
     jack openssl ffmpeg theora objc policykit upnp plasma \
     libv4l2 geoip wmf inotify v4l2 ieee1394 vcd ntp xcomposite openntpd \
     parse-clocks hddtemp lcms smp -nsplugin quicktime lv2 -hal \
     xinetd udev avahi -semantic-desktop vpx truetype fontconfig"

ACCEPT_LICENSE="*"
LINGUAS="es es_LA"

INPUT_DEVICES="keyboard mouse evdev joystick synaptics"
ALSA_CARDS="hda-intel"
VIDEO_CARDS="vesa radeon"
SANE_BACKENDS="hp hpsj5s"
QEMU_SOFTMMU_TARGETS="arm i386 x86_64"
QEMU_USER_TARGETS="arm i386 x86_64"

FETCHCOMMAND="/usr/bin/getdelta.sh \"\${URI}\" \"\${FILE}\""
PORTDIR_OVERLAY="/home/code/live-sources/local-overlay"
KBUILD_OUTPUT="/usr/src/linux-build"
source "/var/portage/layman/make.conf"

_________________
Just feel the code...
Back to top
View user's profile Send private message
codestation
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2008
Posts: 126
Location: /dev/negi

PostPosted: Mon Sep 06, 2010 3:40 pm    Post subject: Reply with quote

EDIT: oops double post
_________________
Just feel the code...


Last edited by codestation on Tue Sep 28, 2010 12:28 am; edited 1 time in total
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2199
Location: $TERM

PostPosted: Tue Sep 07, 2010 10:36 am    Post subject: Reply with quote

Code:
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"


You don't need that anymore...
_________________
Buy from companies supporting opensource -- IBM, Dell, HP, Hitachi, Google etc...
Disfavor companies supporting only Win -- Logitech, Epson, Pioneer, Kingston, WD, Yahoo, MSI, XFX, Huawei
My blog
Back to top
View user's profile Send private message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Thu Sep 23, 2010 2:57 pm    Post subject: Reply with quote

I found this page in the GCC documentation on Optimization Flags. It lists what -O3 imples, what -O2 implies etc, as well as a short definition of what each flag does.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2124

PostPosted: Thu Sep 23, 2010 10:19 pm    Post subject: Reply with quote

Code:
ACCEPT_LICENSE="*"
ACCEPT_KEYWORDS="~amd64"

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--sort-common"

PORTDIR=/usr/portage/gentoo/
PORTDIR_OVERLAY=/usr/portage/mine
DISTDIR=/usr/portage/distfiles
PKGDIR=/usr/portage/packages

GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://distfiles.gentoo.org"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

MAKEOPTS="-j9"
AUTOCLEAN="yes"
PORTAGE_TMPFS=/dev/shm

FEATURES="-buildpkg collision-protect fail-clean metadata-transfer parallel-fetch sandbox unmerge-orphans userfetch userpriv usersandbox usersync"
CLEAN_DELAY=2
EMERGE_DEFAULT_OPTS="--jobs=4 --keep-going --nospinner --quiet-build --with-bdeps=y"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
FETCHCOMMAND="aria2c --check-certificate=false -q -d \"\${DISTDIR}\" -o \"\${FILE}\" \"\${URI}\""
RESUMECOMMAND="aria2c --check-certificate=false -q -c -d \"\${DISTDIR}\" -o \"\${FILE}\" \"\${URI}\""

ALSA_CARDS="hda-intel"
ALSA_PCM_PLUGINS="*"
CAMERAS="casio_qv"
INPUT_DEVICES="evdev joystick wacom"
VIDEO_CARDS="nvidia"

LINGUAS="de de_DE en en_US"

APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
RUBY_TARGETS="ruby18"

USE="-* acl alsa attr caps crypt idn mmx nls nptl openmp pam pic sse sse2 sse3 ssse3 ssl unicode xattr xcomposite xinerama xrandr X"
Got to clean the LDFLAGS sometime...
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
SiRuS
n00b
n00b


Joined: 05 Sep 2006
Posts: 45
Location: California,USA

PostPosted: Fri Sep 24, 2010 7:07 am    Post subject: Reply with quote

From my Funtoo make.conf
Code:

# These settings were set by the metro build script that automatically built this stage.
# Please consult /etc/make.conf.example for a more detailed example.

ACCEPT_KEYWORDS="amd64"
FEATURES="mini-manifest"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j5"
LINGUAS="en en_US"

USE="-hal -kde -gnome 3dnow 3dnowext mmx mmxext sse sse2 sse3 ssse3 \
bindist bzip2 cairo caps consolekit cups dbus libnotify lzma md5sum \
opengl session startup-notification threads udev unicode X xattr xcb"

ACCEPT_LICENSE="*"
INPUT_DEVICES="evdev joystick keyboard mouse"
VIDEO_CARDS="nvidia"
XFCE_PLUGINS="logout menu trash"
source /var/lib/layman/make.conf
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 657
Location: The Holy city of Honolulu

PostPosted: Fri Sep 24, 2010 7:53 am    Post subject: Reply with quote

Code:
CFLAGS="-march=amdfam10 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="openal gd vdpau xdg thumbnails nocd 3dnow videos connman ofono roe xine mjpeg ffmpeg mpeg mad aac dts a52 flac theora oggvorbis matroska freetype bidi xv svga stream vlm httpd cdda vdpau vcd cdio live inotify extras nvidia threads hal udev X jpeg xpm fontconfig curl fbcondecor gnutls xvmc mmx sse sse2 mng sql -cups alsa png svg jpeg mp3 mp4 mpeg opengl mysql webkit perl dbus faad gtk X -gnome qt3support -kde dvd alsa cdr java truetype"
MAKEOPTS="-j5"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="evdev mouse keyboard"
ACCEPT_LICENSE="gd RTCW AdobeFlash-10.1 DOOM3 ut2003 dlj-1.1 googleearth AdobeFlash-10 LOKI-EULA"
ACCEPT_KEYWORDS="~amd64"
source /var/lib/layman/make.conf

_________________
I, for one, am glad to be living on a planet with 776x the mass of the super-massive black hole at the center of the milky way just to keep Neptune in its daily orbit around the Earth.
auf alten Schiffen lernt man Segeln.
Back to top
View user's profile Send private message
freke
Apprentice
Apprentice


Joined: 23 Jan 2003
Posts: 152

PostPosted: Sun Sep 26, 2010 5:18 pm    Post subject: Reply with quote

Just re-installed an old Sun E450, and here's the make.conf as it currently sits :)

Code:
CFLAGS="-O2 -mcpu=ultrasparc -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="sparc-unknown-linux-gnu"
#MAKEOPTS="-j5"

MAKEOPTS="-j7"
FEATURES="distcc"

GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.uni-c.dk/pub/gentoo/"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="-X -acl -alsa -arts -berkdb bzip2 cli ctype -cups -dvd -gnome -gtk -gtk2 -ipv6 -kde"
ALSA_PCM_PLUGINS=""
APACHE2_MODULES=""
LCD_DEVICES=""
VIDEO_CARDS=""

PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn error log qa"
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Tue Dec 21, 2010 2:45 pm    Post subject: Reply with quote

Here's what I'm using on my ageing socket 939 desktop:
Code:
CFLAGS="-O2 -pipe -march=native -mtune=native"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"
ACCEPT_KEYWORDS="amd64"

PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PORTAGE_NICENESS="10"
EMERGE_DEFAULT_OPTS="--verbose"
FEATURES="parallel-fetch candy sfperms sandbox distlocks userfetch userpriv usersandbox usersync"

GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="X a52 aac acpi alsa bash-completion bzip2 cairo cdda cdparanoia cdr consolekit css dbus dri dts dv dvd dvdnav dvdr encode exif ffmpeg flac fontconfig gif gtk hardened jpeg lame lcms libnotify lzma mad mime modplug mp3 mp4 mpeg msn musepack nptl nptlonly offensive ogg openal opengl pic png rar sdl smp spell sqlite ssl startup-notification svg tga theora tiff truetype udev unicode usb vorbis wavpack x264 xcb xcomposite xft xml xpm xrandr xv xvid -cups -gnome -hal -kde -oss -qt3 -qt4"
VIDEO_CARDS="r300 radeon vesa"
INPUT_DEVICES="evdev keyboard mouse"
ALSA_CARDS="emu10k1"
LINGUAS="en_GB en"
XFCE_PLUGINS=""

Code:
Portage 2.1.9.25 (hardened/linux/amd64, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-ck-r4 x86_64)
=================================================================
System uname: Linux-2.6.36-ck-r4-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_165-with-gentoo-2.0.1
Timestamp of tree: Mon, 20 Dec 2010 18:45:02 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)

Everything is just plain stable apart from kernels, openrc/baselayout, xorg/mesa/libdrm/radeon (from git, and mesa is linked with -z,lazy so it works properly with hardened gcc), and a bunch of apps (conky, gimp, mplayer, pidgin etc).

The next step is going no-multilib, but there's still a couple of things I use that rely on emul-linux-x86-* that I don't want to get rid of, as much as I hate installing big packs of pre-compiled, out of date binaries with multiple vulnerabilities in them, and I can't justify setting up a whole chroot just for wine and zsnes. If I was feeling brave/was bothered enough I'd just make my own emul-linux packages (tried it once before with little success, albeit following the deprecated guide) or try the multilib overlay :D
Back to top
View user's profile Send private message
BastianBalthazarBux
Retired Dev
Retired Dev


Joined: 10 Dec 2004
Posts: 78

PostPosted: Sun Dec 26, 2010 11:04 pm    Post subject: Reply with quote

some things here are insanely old, may require cleanup
Code:
CFLAGS="-O2 -march=core2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--build-id"

GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://gentoo.inode.at/"


USE="
-arts -eds -esd -lirc -nas -xmms -xprint -oss
3dnow X a52 aac alsa amr apache2 apm asf automount avahi avi bash-completion berkdb bitmap-fonts browserplugin
bzip2 cairo cdda cddb cjk cli compositor cracklib crypt cups curl dbus dri dvdread emboss encode engines erandom exif
extrafilters fam fame ffmpeg firefox flac foomaticdb gdbm gif glitz gpm gstreamer gtk2 hal hpn idn imagemagick imlib
iproute2 ipv6 ithreads java jingle jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kdepim latex libg++ libwww
lua lzo mad mikmod mjpeg mmx mng motif mp3 mpeg mplayer mysql ncurses nls nptl odbc ogg openexr opengl pam pam_chroot
perl plugins png python qt -qt3 qt3support qt4 quicktime readline samba sasl screen sdl server skey slang spell sqlite3
sse ssl svg tcltk tcpd theora threads tiff tls truetype truetype-fonts ucs2 udev unicode urandom usb userlocales utempter
utils vidix vorbis x264 xcb xcomposite xine xinerama xml xv xvid zlib djvu device-mapper reiserfs dedicated
newxkb captury chm exiv2 taglib decibel zip rdesktop nepomuk vnc htmlhandbook telepathy -zeroconf plasma kontact
geos hdf hdf5 ogdi jack caps -pulseaudio schroedinger kdeprefix messenger v4l v4l2 -mbrola akonadi semantic-desktop
startup-notification gallium consolekit -oldnet
webkit social-desktop policykit hpijs new-hpcups scanner system-sqlite zeroconf lzma private-headers
frei0r pcre ssse3
"

FEATURES="userpriv -distcc sign metadata-transfer -preserve-libs noinfo unmerge-orphans -collision-protect -protect-owned splitdebug installsources test-fail-continue"
COLLISION_IGNORE="/usr/share/sip/PyKDE4"
# CPU_CORES=$(cat /proc/cpuinfo | grep -m1 "cpu cores" | sed s/".*: "//)
MAKEOPTS="-j2" # permit to work on the box while compiling

#SYNC="rsync://internal-mirror.it/gentoo-portage"

LINGUAS="it"
PORTAGE_ELOG_CLASSES="info warn error"
PORTAGE_ELOG_SYSTEM="save mail"
PORTAGE_ELOG_MAILURI="sysadmin@internal-mirror.it mail.internal-mirror.it"
PORTAGE_NICENESS=10
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"

ACCEPT_KEYWORDS="~amd64"

VIDEO_CARDS="radeon radeonhd r600 r700"
INPUT_DEVICES="keyboard mouse evdev wacom"
CAMERAS="ptp2 directory canon"

# enable parallel make on packages like openoffice, firefox & others
WANT_MP="true"

PORTDIR=/srv/portage
DISTDIR=/srv/distfiles
PORTAGE_TMPDIR=/srv/tmp
PKGDIR=/g/packages
PORTDIR_OVERLAY="/g/ovl/tmp /g/ovl/x11"
PORTAGE_COMPRESS=lzma

SEARCH_DIRS_MASK="/usr/lib64/vlc/plugins/codec /usr/lib64/vlc/plugins/demux" # does not work

KBUILD_OUTPUT="/usr/src/build/37"

APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias reqtimeout"
APACHE2_MPMS="prefork"

ACCEPT_LICENSE="*"

SANE_BACKENDS="hp4200 net ricoh"

QEMU_SOFTMMU_TARGETS="arm x86_64"
QEMU_USER_TARGETS="arm x86_64"
PHP_TARGETS=php5-3
Back to top
View user's profile Send private message
BigBox37
n00b
n00b


Joined: 25 Dec 2010
Posts: 23

PostPosted: Tue Dec 28, 2010 8:13 am    Post subject: Reply with quote

Here's my Funtoo ~86 Core2 (32bit)
Code:
# Build-time functionality
# ========================
USE="X a52 aac aacs aalib acpi animation-rtl cairo cjk
     collectd_plugins_sensors colordiff consolekit css custom-optimization
     dbus device-mapper dts exif extras faac fdftk ffmpeg firefox fltk
     fontconfig gcj gd gdu gecko-mediaplayer gfxnvidia gimp glitz gnome
     gnome-keyring gs gstreamer gtk imagemagick java java6 javascript
     lcdfilter lcms libcaca libnotify live lm_sensors matroska metric mime mmx
     mmxext mozilla mp4 nautilus nfs nfsv4 nptl nptlonly nsplugin nvidia
     opengl pdf pixmaps policykit ppds pulseaudio rar raw real realtime recode
     secure-delete smp sox sqlite srt sse sse2 ssse3 startup-notification svg
     svga symlink system-sqlite tcl templates theora threads thumbnail tk
     unicode usb vdpau webkit wxwidgets x264 xterm-color xv xvid yahoo youtube
     yv12 -ipv6"

# Host Setting
# ============
CHOST="i686-pc-linux-gnu"

# Host and optimization settings
# ==============================
CFLAGS="-march=native -mtune=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"

# Advanced Masking
# ================
ACCEPT_KEYWORDS="~x86"

# Portage Directories
# ===================
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
DISTDIR=/usr/portage/distfiles
PKGDIR=/usr/portage/packages
PORT_LOGDIR=""
PORTDIR_OVERLAY=/usr/local/portage

# Synchronizing Portage
# =====================
PORTAGE_RSYNC_RETRIES="3"

# Advanced Features
# =================
INSTALL_MASK="INSTALL.gz TODO.gz"
MAKEOPTS="-j5"
PORTAGE_NICENESS=3
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
AUTOCLEAN="yes"
FEATURES="ccache userpriv usersandbox mini-manifest"
CCACHE_SIZE="6G"
CCACHE_DIR="${PORTAGE_TMPDIR}/ccache"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_SYSTEM="save"

# User Set Features
# =================
VIDEO_CARDS="nvidia"
ACCEPT_LICENSE="*"
LINGUAS="en_GB"
SANE_BACKENDS="epson"

Code:
Portage 2.2_rc67-r2 (default/linux/x86/2008.0, gcc-4.4.5, glibc-2.11.2-r2, 2.6.36-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-i686-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-2.1.8
Timestamp of tree: Mon, 27 Dec 2010 19:00:01 +0000
ccache version 3.1.3 [enabled]
app-shells/bash:     4.1_p9-r1
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.5-r3
dev-util/ccache:     3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.1.8-r2
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="INSTALL.gz TODO.gz"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aacs aalib acl acpi alac alsa animation-rtl berkdb bzip2 cairo cdr cjk cli colordiff consolekit cracklib crypt css cups custom-optimization cxx dbus device-mapper dri dts dvd dvdr dvdread encode exif extras faac fdftk ffmpeg firefox flac fltk fontconfig fortran gcj gd gdbm gdu gecko-mediaplayer gfxnvidia gif gimp glitz gnome gnome-keyring gpm gs gstreamer gtk iconv imagemagick java java6 javascript jpeg lame lcdfilter lcms libcaca libnotify live lm_sensors mad matroska metric mime mmx mmxext modules mozilla mp3 mp4 mpeg mudflap nautilus ncurses nfs nfsv4 nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl pixmaps png policykit ppds pppd pulseaudio python rar raw readline realtime recode secure-delete session smp sox sqlite srt sse sse2 ssl ssse3 startup-notification svg svga symlink sysfs system-sqlite tcl tcpd templates theora threads thumbnail tiff tk truetype unicode usb vdpau vorbis wavpack webkit win32codecs wxwidgets x264 x86 xml xorg xterm-color xv xvid yahoo youtube yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 718
Location: philadelphia

PostPosted: Sat Jan 01, 2011 5:22 am    Post subject: Reply with quote

Code:
CFLAGS=""
CXXFLAGS=""

LDFLAGS="-Wl,-O1,--sort-common,--enable-new-dtags,--hash-size=8161,-z,now,-z,combreloc" # -lgomp"
#,--unresolved-symbols=ignore-all,--allow-shlib-undefined,--allow-multiple-definition,-z,muldefs


CFLAGS="${LDFLAGS} -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -ffast-math"

CFLAGS="${CFLAGS} --param l1-cache-size=16 --param l1-cache-line-size=256 --param l2-cache-size=2048 -pipe -O3 -march=nocona -mcx16 -msahf -msse2 -mfpmath=sse -fgcse-las -fgcse-sm -ftree-ccp -m128bit-long-double -fomit-frame-pointer -fweb -finline-functions -funswitch-loops -funroll-loops -ftracer -finline-limit=8192 -funit-at-a-time -fschedule-insns2 -fbranch-target-load-optimize2 -fno-sched-spec-load-dangerous"

   #CFLAGS="${CFLAGS} -fno-strict-aliasing --param inline-unit-growth=165 --param tracer-max-code-growth=200 --param max-crossjump-edges=4096 --param max-delay-slot-live-search=4096 --param max-cselib-memory-locations=1024 --param max-inline-insns-single=512 --param max-inline-insns-auto=128 --param large-function-insns=16384 --param max-gcse-passes=3 --param max-gcse-memory=268435456"  # 134217728
   #CFLAGS="${CFLAGS} -fmodulo-sched -ftree-loop-linear -ftree-loop-im -ftree-vectorize -floop-optimize2 -fgcse-las -fgcse-sm -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch"


CFLAGS="${CFLAGS} -fpeel-loops -fvariable-expansion-in-unroller -funroll-loops -fsched-stalled-insns-dep=2 -fsched-stalled-insns=4 -ftree-loop-optimize -ftree-pre -ftree-pta -ftree-reassoc -ftree-sink -ftree-sra -ftree-switch-conversion -ftree-ter -ftree-dce"
CFLAGS="${CFLAGS} --param max-grow-copy-bb-insns=16 --param max-vartrack-size=0 --param min-insn-to-prefetch-ratio=2 --param max-goto-duplication-insns=11 --param max-gcse-memory=200000000 --param max-inline-insns-single=512 --param max-inline-insns-auto=128 --param max-unrolled-insns=14 --param max-unroll-times=10 --param max-completely-peeled-insns=26 --param max-completely-peel-times=12 --param max-completely-peel-loop-nest-depth=4 --param max-unswitch-insns=18 --param max-unswitch-level=8 --param align-loop-iterations=25 --param tracer-max-code-growth=150 --param max-cse-path-length=20 --param max-cse-insns=2096 --param max-reload-search-insns=4192 --param simultaneous-prefetches=2 --param graphite-max-bbs-per-function=512"
CFLAGS="${CFLAGS}  -ftree-loop-linear -floop-interchange -ftree-loop-ivcanon -floop-block -floop-strip-mine -fgraphite-identity  -floop-parallelize-all -floop-interchange -ftree-loop-distribution -fdelete-null-pointer-checks"
CFLAGS="${CFLAGS} -fopenmp"
CFLAGS="${CFLAGS} -fprefetch-loop-arrays"
#CFLAGS="${CFLAGS} -flto"
 
 #   CFLAGS="-march=nocona -fomit-frame-pointer -O3 -mcx16 -msahf --param l1-cache-size=16 --param l1-cache-line-size=256 --param l2-cache-size=2048 -msse2 -mfpmath=sse -m128bit-long-double -fno-sched-spec-load-dangerous"
 #   CFLAGS="-march=nocona -fomit-frame-pointer -O3 -pipe -mcx16 -msahf -msse2 -mfpmath=sse -m128bit-long-double -funswitch-loops -fpeel-loops -funroll-all-loops -fsched-stalled-insns=4 -fsched-stalled-insns-dep=4

         #CFLAGS=''

CXXFLAGS="${CFLAGS} -fabi-version=0"


ASFLAGS="-march=nocona"

ARCH="x86"
ACCEPT_KEYWORDS="~x86 x86"
FEATURES="buildpkg nodistlocks -ccache -sandbox -autoaddcvs -usersandbox -nostrip -userpriv"
MAKEOPTS="-j4"
MYCONF="--disable-debug --enable-final"
#AFLAGS="${CFLAGS}"
GCJFLAGS="${CFLAGS}"

CHOST="i686-pc-linux-gnu"
#GENTOO_MIRRORS="http://64.27.65.115/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://cudlug.cudenver.edu/gentoo/ ftp://chod.cwru.edu/gentoo"
#SYNC="rsync://gentoo.chem.wisc.edu/gentoo/"
CHOST=i686-pc-linux-gnu

PORTDIR_OVERLAY=""

ACCEPT_LICENSE="*"
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
DISTDIR=${PORTDIR}/distfiles
PKGDIR=${PORTDIR}/packages
RPMDIR=${PORTDIR}/rpm
PORT_LOGDIR=/tmp
CONFIG_PROTECT="/etc /usr/share/config /usr/kde/3/share/config "
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/udev"
FETCHCOMMAND="/usr/bin/wget -t 1 -v --dns-timeout=12 --progress=bar --dns-cache=on -nv --read-timeout=600 --connect-timeout=12 -P \${DISTDIR} \${URI}"
RESUMECOMMAND="/usr/bin/wget -t 1 -v -c --dns-timeout=12 --progress=bar --dns-cache=on -nv --read-timeout=600 -o /RamTemp/wget_log --connect-timeout=12 -P \${DISTDIR} \${URI}"
NOCOLOR="false"
PORTAGE_BINHOST_CHUNKSIZE="16384"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES"
CLEAN_DELAY="14"
AUTOCLEAN="yes"
RSYNC_RETRIES="2"
RSYNC_TIMEOUT="80"
PORTAGE_NICENESS="1"
VIDEO_CARDS="radeon"

USE="16bit GAPING_SECURITY_HOLE S3TC X X509 Xaw3d a52 aac aalib abiword abook
     gstreamer accounting acpi activefilter adns aim aliaschain alsa amarok amd amr ansi
     antlr aotuv apache aper aredaredmem ares artswrappersuid artworkextra asf
     asm asterisk async atm auctex audiofile authdaemond authfile automap b
     bash-completion  bcmath bdf beepmp big-tables bigger-fonts binary-drivers
     bind-mysql tslib xv bindist bittorrent bl blas blender-game bluetooth bonobo
     bootsplash bzip2 bzlib c++ cairo cal cal3d calendar canna cap caps
     capscddb cardbus cdb cdda cddb cdf cdio cdparanoia cdr cdrom cgi charmap
     chasen chroot clamav clanVoice clearpasswd clibpdf client clisp cln
     cluster cmucl cnamefix codecs colors consolekit courier cpio cracklib
     crypto_openssl cscope css csv ctype curl curlwrappers cursors
     custom-cflags optimized-qmake custom-cpuopts custom-optimization custreloc cvs cyrus dba
     dbus dbx dc1394 dcc_video dcc_voice dedicated devfs devfs26 device-mapper
     devmap dga dhcp dict dillo dio disk-cache disk-partition distcache
     distribution raw divx4linux djbfft dlopen dmx dnd dnsdb dpms drac drm dts dv
     dvb dvd dvdarchive dvdchapjump dvdnav dvdr dvdread dvi dvlrecscriptaddon
     dxr3 ecc editor edl elf emf emoticon enscript epson erandom escreen
     estraier ethereal etwin evo evo2 evolution examples exif exim exiscan
     exiscan-acl r128 expat ext-png ext-zlib extensions extraengine extrafilters
     extraicons extramodules extras f77 faac faad facedetect faillog fam fame
     fastcgi fax fb fbcon fbdev ffi ffmpeg fi fifo fla flac flash fmod
     font-server http fontconfig fontforge foomaticdb foreign-package fpx freetds
     freetts freetype frlargefiles frxp fs ftp gb gcc gd gdu geoip geometry gg
     ggi gif gifgimp gimp gimpprint ginac git gkrellm glade glep glgd
     glibc-omitfp glut glx gmail gmp gmtfull gmthigh gmtsuppl gmttria gnome
     gnome-print gnomecanvas gnomecards gnomedb gnuplot gnutls google gphoto2
     gps grammar graph graphite graphviz grub gs gsl gssapi gtk
     gtkhtml gtkspell guile gzip h224 h281 h323 hal hbci hddtemp hdf hdf5 hfs
     high-ints hlapi howl hpcups hpijs hpn html http httpd ical icecast icq
     icu ide idea idl ieee1394 ifc image imagemagick imap imlib2 inetd
     infopipe inifile inline innodb insecure-drivers ipalias ipcs ipv6arpa irc
     irda irmc itcl ithreads jack jack-tmpfs java javascript jikes joystick
     jp2 jpeg jsch junit kcal kde kde3support kdepim koffice-plugin lame lcd
     lcms ldap ldirectord leaf leim libcaca libdsk libffi libgd libgda
     libsamplerate lids lighttpd linuxthreads-tls lirc live lm_sensors lmtp
     log4j long-double lpsol lto ltsp lua lucene lufsusermount lvm lynxkeymap
     lzma lzo lzw lzw-tiff mad mailbox maildir maildrop maps math matrox
     mbrola mcal mcve md md5 md5sum mdb mecab mediaplayer
     mem-cache memoryview menubar messages mew mgetty mha mhash migemo milter
     mime mimencode ming mixer mjpeg mktemp mldonkeypango mmap mms mmx mmx2
     mmxext mng modlocalizer monkey mouse mozcalendar mozdevelop mozilla
     mozp3p mozsvg mozxmlterm mp3 mp3rtp mp3tunes mp4 mp4live mpd mpeg mpeg2
     mpeg4 mpg123 mplayer mpm-leader mppe-mppc mpx msdav msn
     mtp mule multi-tty multicall multimedia multipleip multiprocess multislot
     mysql mythtv mzscheme nagios-dns nagios-ntp nagios-ping nagios-s
     nagios-ssh nas native neXt net netbeansnetboot netboot netcdf network
     networking neural new-login nextaw nfs nfsv4 nis nntp nodrm nokia
     nomalloccheck nothreadsafe nptlonly nsplugin ntfs ntlm numeric nvidia
     objc objc++ ocaml odbc ode offensive ofx ogdi ogg oggvorbis vorbis xine
     on-the-fly-crypt ooo-kde openal openexr opengl openntpd opens openssh
     openssl opie optimisememory optimization orathreads oro oscar pam-mysql
     pam_chroot pam_timestamp parse-clocks passfile pcap pcntl pda pdf pear-db
     perlsuid pg-hier pg-intdatetime pg-vacuumdelayphp phonon php physfs
     player plotutils plugin png pnp policykit portaudio posix postfix
     postgres postgresql povray ppds prelink prelude pri print priority
     procmail pthreads pvr pwdb python3 qdbm qhull qt3support qt4 quotes
     radiusreadline rdesktop real recode regexp reiserfs remote rhino rogue
     rplay rrdtool rss rtc samba sametime sasl savedconfig scanner
     semanticfix sendfile sendmail serial server servlet-2.3 servlet-2.4 sguil
     shared sharedext sharedmem sheep silc simplexml skey skk slang slp smime
     smp smtp smux sndfile snortsam sockets socks5 softmmu softquota sound
     soundtouch source sox spamassassin speech speedo speex spell sql sqlite
     sqlite3 src srp sse sse2 ssh startup-notification stats stencil-buffer
     stream subject-rewrite subp svg svga svgz symlink sysfs syslog sysvipc
     szip t1lib tabs tcc tcl tcltk tcpmd5 tetex tga theora thesaurus threads
     tidy tiff timidity tk tlen tokenizer tools tos transcode translator
     transparent-proxy truetype trusted ttcp type1 uim uml unicode unsafe ups
     uptimed urandom usagi usb userlocales utf8 uudeview v4l2 vda vdesktop
     vhosts video_cards_nvidia videos vidix vim vim-pager vim-with-x virtual
     vlc vlm vmdbmysql vnc voice vserver wddx webkit wifi wildlsearch
     win32 win32codecs withsamplescripts wma wma123 wmf wpd wpg wv2 wxwin
     wxwindows x11vnc xanim xatrix xbase xchatdccserver xchattext xcomposite
     xerces xface xforms xfs xft xim xine xinerama xml xml2 xmlrpc xosd xpm
     xprint xrandr xrender xscreensaver xsl xslt xvid xvmc yahoo yaz yp yv12
     zeo zvbi -auto-hinter -ipv6 -nls -qt3 -ruby"
#-debug -libg -nls -snmp -firebird -msql -mssql

#PORTAGE_TMPDIR=/mnt/dl/babaar/var/tmp
#PORTDIR=/usr/portage
#DISTDIR=${PORTDIR}/distfiles
#PKGDIR=/RamTemp/tmp
#RPMDIR=${PORTDIR}/rpm
#ROOT=/mnt/dl/babaar

Code:
FEATURES variable contains unknown value(s): nodistlocks
Portage 2.1.9.27 (default/linux/x86/10.0, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36.2 i686)
=================================================================
System uname: Linux-2.6.36.2-i686-with-gentoo-2.0.1
Timestamp of tree: Fri, 31 Dec 2010 14:55:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.68
sys-devel/automake:  1.5-r1, 1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1, 2.21
sys-devel/gcc:       4.4.4-r2, 4.5.1-r1, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.3.5, 2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)


glibc CFLAGS (-ftracer causes an error)
-Wl,-O1,--sort-common,--allow-shlib-undefined,--allow-multiple-definition,--enable-new-dtags,--hash-size=8161,-z,now,-z,combreloc,-z,muldefs -O3 -fno-strict-aliasing -fno-strict-aliasing -flto -mcx16 -msahf -msse2 -mfpmath=sse -fgcse-las -fgcse-sm -ftree-ccp -m128bit-long-double -fomit-frame-pointer -fweb -funit-at-a-time -pipe -O3 -mfpmath=sse -m128bit-long-double -fweb -fomit-frame-pointer -finline-functions -funswitch-loops -funroll-all-loops -finline-limit=8192 -O3 -fno-rename-registers -DTEST_FAST_MATH -ffast-math -floop-block -march=nocona -floop-strip-mine -fgraphite-identity -floop-parallelize-all -floop-interchange -ftree-loop-distribution -fdelete-null-pointer-checks -fpeel-loops
##-fmerge-all-constants
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 718
Location: philadelphia

PostPosted: Sun Jan 02, 2011 9:46 pm    Post subject: Reply with quote

Note:-ffast-math breaks any javascript handling code that you compile.

It will cause konqueror, mozilla, firefox, (probably spidermonkey and openoffice) to crash.

It is just the particular js lib with the particular code. There really ought to be patches in portage prevent the flag since it is a a guaranteed code breaker.

You may be able to get away with -fassociative-math but I really don't know about that.
Back to top
View user's profile Send private message
darkstarbyte
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2010
Posts: 120

PostPosted: Sun Jan 09, 2011 10:49 pm    Post subject: Reply with quote

My Flags will drive you all crazy.

I am using a hardened profile.

Code:

CFLAGS="-O2 -march=native -fstack-protector-all -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3 -l2"
USE="32bit X aac aiglx alsa aoss asf audio bzip2 cairo dbus device-mapper
     dhcpcd dvd ethernet extras fam fat firefox flash flv gdu gif glitz gmail
     google gstreamer gtk gtk2-perl gzip hal hardened hddtemp http http-cache
     http-via-header httpd icu jack java jpeg libfaac libx264 mad mcve
     monolithic-build mouse mp3 mp4 new-login nptl nsplugin nspluginwrapper opengl
     pdf pic png policykit real spell sqlite sse3 ssh svg symlink
     theora threads tiff truetype win32 x264 xcomposite xinerama xml xorg
     xscreensaver xv xvid -R -abiword -arts -attica -attrib -clamav -clamd
     -cups -evo -fax -floppy -gnome -gnome-keyring -gnome-print -gnomecanvas
     -gnomecards -google-gadgets -gphoto2 -grub -handbook -heartbeat
     -highvolume -history -hpcups -hpijs -ice -icecast -ices -icq -ifp -ilbc
     -infiniband -infowidget -injection -iphone -iplayer -ipod -ipv6 -j2me
     -jabber -jad -jingle -jp -kdcraw -kde -kdecards -kdm -kig-scripting -kino
     -kipi -kismet -kmail -konqueror -kontact -langpacks -laptop -lcd
     -lcdfilter -leim -lensfun -levels -libburn -libdsk -libgda -libmms -libnotify
     -libproxy -lightning -lilo -lirc -lircsettings -live -livebuffer
     -lm_sensors -lock -logviewer -logwatch -lyrics -lyrics-screen -mac
     -madwifi -maemo6 -magnetgenerator -mailclient -mdb -mediaplayer -migemo
     -mms -mmx -mod_muc -mod_proxy65 -mod_pubsub -msn -mtp -muine -mythtv
     -na_dd -na_dtv -netboot -nl_wolf -no -nvidia -oldworld -pidgin -pipes
     -plasma -pulseaudio -ppp -pppd -privacy -private-headers -profiler -proxy -pt -pygrub
     -qalculate -qt-bundled -qt-dbus -qt-faststart -qt-static -qt-webkit -qt3
     -qt3support -qt4 -qthelp -qtscript -ru-dv -ru-g -ru-i -ru-k -samba -sbc
     -scanner -schedule -skype -splash -sse -sse2 -sse4 -sse4a -sse5 -ssse3
     -stream -stroke -thinkpad -thunderbird -touchscreen -twitter
     -video_cards_nvidia -wifi -wiimote -wireshark -xface -xfce
     -yahoo"
VIDEO_CARDS="intel"
ACCEPT_LICENSE=" skype-eula PUEL AdobeFlash-10.1 dlj-1.1 Attica"
ACCEPT_KEYWORDS="~amd64"

_________________
You know you're a geek when...

you're whiling away some time in the computer department at your local store, spot a dialog box on the one of the laptops that calmly announces"Mcfee. Your computer is at risk",and totally get the unintended humor.
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 482
Location: Scotland

PostPosted: Mon Jan 10, 2011 8:52 pm    Post subject: Reply with quote

Code:

CFLAGS="-march=native -msse -msse2 -msse3 -mmmx -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j3"
USE="16bit 3gp DAV Daap PyQt4 S3TC X X509 Xaw3d a52 aac acl acpi additions aio
     alsa analogtv animation-rtl animgif apache2 apcupsd applet artworkextra
     ass async audioscrobbler autoipd automount avahi background beagle
     beanshell beeper binary-drivers bluetooth bluez-gnome branding brasero
     bzip2 cairo calendar caps ccache cdaudio cdda cdio cdr cdrkit cdrom
     cdrtools cg cifs cifsupcall clamav clamd clamdtop cleartype client clock
     composite consolekit cover cuda cupsddk curl curlwrappers cursors cxx
     dbase dbus desktop-effects device-mapper disk-partition divx dns dso dv
     dvb dvbplayer dvbsetup dvd dvdnav dvdr dvdread eds effects encode
     entertainer epiphany equalizer evo exif extraicons extras fam fat fat16
     fbcondecor fbsplash ffmpeg fftw fits flac flash fltk flv fontconfig ftp
     fuse games gcj gconf gd gdbm gdm gdu gedit gif git gjs glade glib glitz
     glx gmedia gnome gnome-dvb-daemon gnome-keyring gnome-print gnome-shell
     gnomecanvas gnomecd gnutls gphoto2 gpib gpm gps graphics graphviz grub
     gstreamer gtk gtkhtml gtkstyle h224 h323 hal hardware hddtemp help-screen
     hibernate-script hidd hifieq howl-compat hpn htsp http httpd i2c icc
     icons id3 id3tag idn ieee1394 imagemagick imap imlib inotify
     introspection iplayer iptc ivman jack java java6 javascript jpeg jpeg2k
     kdrive kerberos key-screen keyboard lame laptop lastfm lastfmradio lcms
     libburn libgda libnotify libsamplerate libsexy libsoup libv4l2 libvisual
     lm_sensors logrotate lzo mad mdnsresponder-compat metacity metadata mime
     mmx mmxext mng modplug mono mp2 mp3 mp4 mpd mpeg mutter nautilus net
     network networking networkmanager new-login nfs nfsv3 nfsv4 nptl ntfs ntp
     nvidia nvram nvtv objc offensive ogg openal opengl openstreetmap opera
     optimization osc oss outputs overlays pam parted pdf perl pipechan
     pixmaps player playlist plugins pm-utils pmu png policykit ppds pvr
     python python-daap quicktime radio raw rdesktop rss rsync rtsp ruby sasl
     scrobbler sctp sdl search-screen server sftp shaders sharedext sharedmem
     shm shmvideo showtabbar sid sip slideshow slp smi smp smtp sndfile snmp
     sockets sound spell splash sql sqlite sse sse2 sse3 ssh ssl ssse3
     startup-notification svg swf symlink syslog sysvipc taglib tdb teletext
     tetex themes theora tiff tk toolbar tools tordns totem transcode truetype
     tvheadend twisted type3 udev udev-acl underscores unicode unsupported
     upnp usb userpriv v4l v4l2 vdpau vdr vfat vga vhook via video
     video_cards_nvidia videos virtualbox visual visualization visualizer vnc
     vorbis wav wavpack weather weather-metar weather-xoap webdav winbind wma
     wmf wmp wxwidgets x264 x86emu xattr xcb xcomposite xcursors xf86 xine
     xinerama xml xosd xpm xrandr xrender xscreensaver xv xvid xvmc youtube
     yv12 zeroconf zlib -cpudetection -directfb -esd -kde -pango -pulseaudio
     -qt3support -svga"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="keyboard mouse evdev"
DVB_CARDS="usb-wt220u"
LINGUAS="en_GB"
FEATURES="ccache metadata-transfer"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="3G"
ACCEPT_LICENSE="dlj-1.1"
MPD_HOST="192.168.0.2"
MPD_PORT="7070"
APACHE2_MODULES="auth_digest authn_file authz_groupfile authz_host dav dav_fs dir mime status"
source /var/lib/layman/make.conf
GENTOO_MIRRORS="192.168.0.4"
PORTDIR="/mnt/nfs_portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
RPMDIR="${PORTDIR}/rpm"
PORTAGE_TMPDIR="/var/tmp"

_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
vdracula
n00b
n00b


Joined: 03 Aug 2004
Posts: 51
Location: NGC 5907

PostPosted: Sat Feb 05, 2011 9:37 am    Post subject: Reply with quote

Code:
########################
# make.conf
########################

########################
# chost, etc.
#
# echo "int main() { return 0; }" | gcc -march=native -v -E - 2>&1 | grep march
########################
CFLAGS="-march=native -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--sort-common"

########################
# build options
########################
MAKEOPTS="-j6"

########################
# CCACHE
########################
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/ccache"

########################
# portage
########################
ACCEPT_KEYWORDS="~amd64"
FEATURES="parallel-fetch userfetch userpriv usersandbox distcc collision-protect"
CLEAN_DELAY="2"
EMERGE_DEFAULT_OPTS="--jobs=2"                                                                                                       
EMERGE_WARNING_DELAY="2"                                                                                                             

#GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.osuosl.org/ "
#SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
FETCHCOMMAND="/usr/bin/wget --progress=bar:force -t 5 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
RESUMECOMMAND="/usr/bin/wget --progress=bar:force -c -t 5 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\""


########################
# USE
########################
USE="disk-partition bash-completion samba xattr gmp device-mapper \
     logitech-mouse xinerama glitz xcomposite lm_sensors inotify \
     custom-optimization -eds lcms smp foomaticdb gimp fbcondecor xrender \
     cleartype gtk2 networkmanager webkit mysql akonadi \
     semantic-desktop zeroconf consolekit v4l v4l2 accessibility sqlite ntfs \
     mng iproute2 threads sse3 geoip ssse3 -bluetooth vdpau sql \
     python3 policykit resolvconf gnutls nss djvu wps sip video \
     audio wav stun kdrive lzma rar openexr skype plasma rss ffmpeg \
     a52 jack xvmc chipcard lirc mplayer fontconfig x264 theora \
     udev gd lv2 vhosts reports h323 optimized-qmake pch enca -hal \
     lvm mdadm system-sqlite -fbsplash"

LINGUAS="de"
VIDEO_CARDS="nv nvidia nouveau"
ALSA_CARDS="hda-intel emu10k1"
LIRC_DEVICES="livedrive_midi livedrive_seq"

INPUT_DEVICES="evdev"
ACCEPT_LICENSE="*"

#PORTDIR_OVERLAY="/usr/local/portage $PORTDIR_OVERLAY"

#PORTAGE_TMPFS="/dev/shm"
#PORTAGE_TMPDIR="/dev/shm"
#BUILD_PREFIX="/dev/shm"

source /var/lib/layman/make.conf
Back to top
View user's profile Send private message
bachinchi
n00b
n00b


Joined: 22 Apr 2011
Posts: 3

PostPosted: Fri Apr 22, 2011 3:14 am    Post subject: Reviving Reply with quote

As this has been such an useful thread for me. I'm posting my make.conf (pretty basic):
Code:

###############################################################################
# Compiler and linker flags #
###############################################################################
CFLAGS="-mtune=k8-sse3 -march=k8-sse3 -O2 -pipe -fomit-frame-pointer -w"
CXXFLAGS="-mtune=k8-sse3 -march=k8-sse3 -O2 -pipe -w"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
CHOST="x86_64-pc-linux-gnu"

###############################################################################
# Building #
###############################################################################
MAKEOPTS="-j3"

###############################################################################
# Portage #
###############################################################################
#ACCEPT_KEYWORDS="~amd64" #instead modify /etc/portage/package.keywords
ACCEPT_LICENSE="*"
AUTOCLEAN="yes"
CLEAN_DELAY="3"
EMERGE_DEFAULT_OPTS="--ask --ask-enter-invalid --jobs=2"
PORTAGE_NICENESS="8"
GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"

# System #
ALSA_CARDS="hda-intel"
INPUT_DEVICES="evdev synaptics"
LINGUAS="en es"
VIDEO_CARDS="radeon"

###############################################################################
# USE Flags #
###############################################################################
gUSE_BLOCK="-3dnow -3dnowext -aqua -arts -bluetooth -cups -doc -embedded -fbsplash -geoip -google-gadgets -gtk -gnome -gstreamer -hal -handbook -hardened -ieee1394 -ipv6 -jack -lilo -mono -mng -nouveau -nut -old-linux -oss -pulseaudio -real -semantic-desktop -skype"
gUSE_RANDOM="additions lzma offensive rar"
gUSE_CPU="64bit mmx mmxext sse sse2 sse3 sse4a"
gUSE_MULTIMEDIA="a52 aac alsa avcodec cdda cdr cdio css dvd dvdr dts flac imagemagick kate libv4l2 mpeg ffmpeg matroska mp3 mp4 ogg oggvorbis sdl sound theora v4l2 vcd vlc vlm vorbis webm xvid x264 xvmc"
gUSE_KDE="consolekit declarative kde plasma qt4"
gUSE_XORG="opengl svga X xcomposite xinerama xorg xrandr xv"
gUSE_IMAGETEXT="bidi mad freetype gif jpeg pdf png svg unicode tiff truetype"
gUSE_GENERAL="acpi apm dbus fuse gnutls laptop java mysql ncurses networkmanager nsplugin policykit rtc startup-notification udev scanner smp webkit wifi xml"
USE="$gUSE_BLOCK $gUSE_RANDOM $gUSE_CPU $gUSE_MULTIMEDIA $gUSE_KDE $gUSE_XORG $gUSE_IMAGETEXT $gUSE_GENERAL"


Edit: I think I'm satisfied with my make.conf now


Last edited by bachinchi on Sun Apr 24, 2011 6:03 pm; edited 3 times in total
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1227
Location: Jefferson, USA

PostPosted: Fri Apr 22, 2011 3:23 am    Post subject: Reply with quote

Code:
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
INPUT_DEVICES="keyboard evdev synaptics"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="--extreme"
USE="-32bit -acl -accessibility -alsa -avahi -eds -firefox -gallium -gconf -gnome -hal -java -kde -qt4 -samba -webkit -xulrunner -zeroconf 64bit X a52 aac acpi aim bash-completion bindist bluetooth bzip2 cairo caps cdda cddb cdparanoia cdr cjk consolekit crypt css cups dbus dhcpcd doc dri dts dvd dvdr encode exif ffmpeg flac ftp gif gimp gnutls gstreamer gtk gzip ieee1394 ipv6 javascript joystick jpeg jpeg2k ladspa lame libnotify mad matroska midi mng mp3 mp4 mpeg mplayer msn mmx ncurses networkmanager nptl nptlonly nsplugin ogg opengl openmp pam pcmcia pdf png policykit pulseaudio rss sdl smp sox speex sqlite sse sse2 sse3 ssse3 startup-notification svg syslog theora threads tiff truetype udev unicode usb vim-syntax vorbis wifi x264 xcomposite xfce xpm xv xz"
VIDEO_CARDS="intel"
Back to top
View user's profile Send private message
ceric35
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2006
Posts: 103

PostPosted: Fri Apr 22, 2011 1:00 pm    Post subject: Reply with quote

Code:
USE="apache2 bash-completion vhosts"
USE="$USE ssse3"
USE="$USE gnome pulseaudio"
USE="$USE -firefox -qt3support"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
VIDEO_CARDS="radeon"
INPUT_DEVICES="evdev keyboard mouse synaptics"
ALSA_CARDS="hda-intel"
LINGUAS="fr fr_FR"
APACHE2_MODULES="$APACHE2_MODULES cgid proxy proxy_ajp proxy_http"
ACCEPT_LICENSE="sun-prerelease-jdk7 dlj-1.1 AdobeFlash-10.1"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
MAKEOPTS="-j3"
PORTAGE_ELOG_CLASSES="log warn error"
source /var/lib/layman/make.conf
Back to top
View user's profile Send private message
Qu4rk
n00b
n00b


Joined: 22 Mar 2005
Posts: 74

PostPosted: Tue May 10, 2011 5:16 pm    Post subject: Reply with quote

Wow. Are you guys editing your make.conf manually or do you have some sort of thing to manage it? The reason I'm asking, some people have some very cumbersome make files, but I'd like to explore my options without having to know every single flag, option etc.

Thanks
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2584
Location: UK

PostPosted: Tue May 10, 2011 5:35 pm    Post subject: Reply with quote

augury wrote:
Code:
# (entire contents of cflags section of gcc manual omitted for brevity)
[...] USE="16bit GAPING_SECURITY_HOLE [...]

*sounds the ricer alarm*
_________________
runit-init howto | Overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... 11, 12, 13, 14, 15  Next
Page 12 of 15

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum