All pastes #611311 Raw Edit

drbombay[lap]

public text v1 · immutable
·published 2007-07-09 21:25 UTC
rendered paste body
# bashrc
# This file created by Dr. W.F.Bombay

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

#
# CFLAGS
#

        CF01="-O3"
        CF02="-march=pentium4"
        CF03="-pipe"
        CF04="-fomit-frame-pointer"
        CF05="-ftree-vectorize"
        CF06="-frename-registers"
        CF08="-Dft_isdigit=isdigit"

case "${P}" in
        libXfont-1.3.0)
        # Needs this particular cflag for xorg-server to build
        CFLAGS="${CF01} ${CF02} ${CF03} ${CF04} ${CF05} ${CF06} ${CF08}"
        ;;
        *)
        # Base CFLAGS
        CFLAGS="${CF01} ${CF02} ${CF03} ${CF04} ${CF05} ${CF06}"
        ;;
esac

#
# C++ Flags
#

        CXXF1="-fvisibility-inlines-hidden"

#
#Base CXXFLAGS
#

case "${P}" in
        paludis-0.24.3)
        # 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
        evfs-9999)
        # These packages choke on --as-needed
        LDFLAGS="${LDF1} ${LDF3} ${LDF4} ${LDF5}"
        ;;
        *)
        # Base LDFLAGS
        LDFLAGS="${LDF1} ${LDF2} ${LDF3} ${LDF4} ${LDF5}"
        ;;
esac
        
#
# Make options
# 

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

#
# These packages fail during testing
#

case "${P}" in 
        automake|cairomm|coreutils|curl|e2fsprogs-1.40.1|gst-python|gtk+|guile|mutagen|python|syslog-ng|tar) 
        export SKIP_FUNCTIONS=test  
        ;; 
esac

#
# Sandbox violation workaround
#

#case "${PN}-${PV}" in
#       *)
#        SANDBOX_PREDICT=/
#        ;;
#esac

#
# Cache Information
#

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