added frugalware patch for DistCC support
This commit is contained in:
parent
1969a8beb9
commit
50be438d4a
2 changed files with 19 additions and 4 deletions
|
@ -12,8 +12,8 @@ export CHOST="i686-pc-linux-gnu"
|
||||||
|
|
||||||
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon exclusive (binaries
|
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon exclusive (binaries
|
||||||
# will use the P6 instruction set and only run on P6+ systems)
|
# will use the P6 instruction set and only run on P6+ systems)
|
||||||
export CFLAGS="-march=i686 -O2 -pipe -Wl,-O1"
|
export CFLAGS="-march=i686 -O2 -pipe"
|
||||||
export CXXFLAGS="-march=i686 -O2 -pipe -Wl,-O1"
|
export CXXFLAGS="-march=i686 -O2 -pipe"
|
||||||
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
|
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
|
||||||
# will run on any x86 system)
|
# will run on any x86 system)
|
||||||
#export CFLAGS="-mcpu=i686 -O2 -pipe"
|
#export CFLAGS="-mcpu=i686 -O2 -pipe"
|
||||||
|
@ -25,8 +25,14 @@ export CXXFLAGS="-march=i686 -O2 -pipe -Wl,-O1"
|
||||||
# Enable fakeroot for building packages as a non-root user
|
# Enable fakeroot for building packages as a non-root user
|
||||||
export USE_FAKEROOT="y"
|
export USE_FAKEROOT="y"
|
||||||
|
|
||||||
|
# Enable distributed C/C++/ObjC compiler
|
||||||
|
# Also modify MAKEFLAGS to include -jN, where N = 2 * (numCPUs+1)
|
||||||
|
export DISTCC="n"
|
||||||
|
# Space-delimited list of hosts running in the distcc cluster
|
||||||
|
export DISTCC_HOSTS=""
|
||||||
|
|
||||||
# Enable colorized output messages
|
# Enable colorized output messages
|
||||||
export USE_COLOR="n"
|
export USE_COLOR="y"
|
||||||
|
|
||||||
# Specify a fixed directory where all packages will be placed
|
# Specify a fixed directory where all packages will be placed
|
||||||
#export PKGDEST=/home/packages
|
#export PKGDEST=/home/packages
|
||||||
|
|
|
@ -591,6 +591,15 @@ if [ "$NOBUILD" = "1" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# use distcc if requested
|
||||||
|
if [ "$DISTCC" = "y" ]; then
|
||||||
|
[ -d /usr/lib/distcc/bin ] && export PATH=/usr/lib/distcc/bin:$PATH
|
||||||
|
if [ "$INCHROOT" = "1" ]; then
|
||||||
|
[ -d /var/tmp/fst/.distcc ] || mkdir /var/tmp/fst/.distcc
|
||||||
|
export DISTCC_DIR=/var/tmp/fst/.distcc
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# use ccache if it's available
|
# use ccache if it's available
|
||||||
if [ "$NOCCACHE" = "0" ]; then
|
if [ "$NOCCACHE" = "0" ]; then
|
||||||
[ -d /usr/lib/ccache/bin ] && export PATH=/usr/lib/ccache/bin:$PATH
|
[ -d /usr/lib/ccache/bin ] && export PATH=/usr/lib/ccache/bin:$PATH
|
||||||
|
|
Loading…
Add table
Reference in a new issue