All pastes #758911 Raw Edit

drbombay[lap]

public text v1 · immutable
·published 2007-11-02 17:52 UTC
rendered paste body
 bashrc
# This file created by Dr. W.F.Bombay

export CHOST="i686-pc-linux-gnu"

#
# CFLAGS
#
	CF01="-march=prescott"
	CF02="-O2" # Everyone agrees on this flag
	CF03="-O3" # AStorm & b33fc0d3
	CF04="-pipe" # Everyone agrees on this flag
	CF05="-fomit-frame-pointer" # Nesl247 & Conrad
	CF06="-fno-ident" # Conrad
	CF07="-frename-registers" # Nesl247 & Conrad
	CF08="-fweb" # Nesl247 & Conrad
	CF09="-msse3" #Seren
	CF10="-fgcse-after-reload" # needed for options which use -02
	CF11="-Dft_isdigit=isdigit" # needed for x11-libs/libxfont
	CF12="-ftree-vectorize" # not on gtk applications
	CF13="-ftree-vectorizer-verbose=7" # not on gtk applications
	
case ${CATEGORY}/${PN} in
	x11-libs/libXfont)
	# Needs this particular cflag for xorg-server to build
	CFLAGS="${CF01} ${CF03} ${CF04} ${CF05} ${CF06} ${CF07} ${CF08} ${CF09} ${CF11} ${CF12} ${CF13}"
	;;
	sys-apps/paludis)
	CFLAGS="${CF01} ${CF02} ${CF04} ${CF05}"
	;;
	*)
	# Base CFLAGS
	CFLAGS="${CF01} ${CF03} ${CF04} ${CF05} ${CF06} ${CF07} ${CF08} ${CF09} ${CF12} ${CF13}"
	;;
esac

#
# C++ Flags
#

	CXXF1="-fvisibility-inlines-hidden"

#
#Base CXXFLAGS
#

case "${PN}" in
	paludis)
	# Has a problem with -fvisibility-inlines-hidden, testsuite falls if it's enabled
	CXXFLAGS="${CFLAGS}"
	;;
	*)
	# Base CXXFLAGS
	CXXFLAGS="${CFLAGS} ${CXXF1}"
	;;
esac

#
# Linker Flags
#

	LDF1="-Wl,-O1"
#	LDF2="-Wl,--as-needed"
#	LDF3="-Wl,--hash-style=gnu"
#	LDF4="-Wl,-znow"
#	LDF5="-Wl,--sort-common"

case "${P}" in
#	cdparanoia-3.9.8|courier-imap-4.1.2|evfs-9999|evolution-2.12.1|mjpegtools-1.9.0|paludis-0.26.0_alpha2|pilot-link-0.11.8|qdbm-1.8.75|torcs-1.3.0)
#        # These packages choke on --as-needed
#	LDFLAGS="${LDF1} ${LDF3} ${LDF4} ${LDF5}"
#	;;
#	ati-drivers-8.34.8|ffmpeg-20079999|gst-python-0.10.8|texinfo-4.11|xorg-server-1.3.0.0)
#	# These packages choke on -znow
#	LDFLAGS="${LDF1} ${LDF2} ${LDF3} ${LDF5}"
#	;;
#	glibc-2.7)
#	# These packages choke on LDFLAGS
#	LDFLAGS=""
#	;;
	*)
	# Base LDFLAGS
 	LDFLAGS="${LDF1}" # ${LDF2} ${LDF3} ${LDF4} ${LDF5}"
	;;
esac
	
#
# Make options
# 

case "${P}" in
	x264-svn-20079999)
        MAKEOPTS="-j1"
        ;;
        *)
        MAKEOPTS="-j3 -s"
        ;;
esac

#
# These packages fail during testing
#

case "${P}" in 
	automake-1.5|automake-1.6.3|automake-1.7.9|automake-1.8.5|automake-1.9.6|automake-1.10|tracker-0.6.3|coreutils-6.9|curl-7.16.3|curl-7.16.4|dbus-python-0.82.2|e2fsprogs-1.40.1|e2fsprogs-1.40.2|ecasound-2.4.5|eel-2.20.0|epiphany-2.18.2|evince-0.8.3|gimp-help-0.13|gnome-vfs-2.20.0|gst-python-0.10.8|guile-1.8.3|ladspa-sdk-1.12|libgnomecanvas-2.20.1.1|libbonoboui-2.20.0|mono-1.2.4|mutagen-1.12|mutagen-1.11|nautilus-2.20.0|pygobject-2.14.0|poppler-bindings-0.6.1|pmount-0.9.16|qdbm-1.8.75|rsync-2.6.9|syslog-ng-2.0.4|tar-1.18|texinfo-4.11|x11-drm-20071019) 
	export SKIP_FUNCTIONS=test  
	;; 
esac

#
# Sandbox violation workaround
#

case "${P}" in
       gimp-help-0.13|gnome-vfs-2.20.0|ladspa-sdk-1.12)
        SANDBOX_PREDICT=/
        ;;
esac

#
# Cache Information
#

export PATH="/usr/lib/ccache/bin/:${PATH}"
export CCACHE_DIR="/var/tmp/ccache"