mingw32-gcc: add distcc and ccache symlinks if either or both packages are installed

This commit is contained in:
Danny Rawlins 2007-05-16 17:56:23 +10:00
parent a56a0c95c0
commit 27d142bd38
2 changed files with 37 additions and 5 deletions

View File

@ -237,6 +237,20 @@ drwxr-xr-x root/root usr/include/c++/3.4.5/mingw32/bits/stdc++.h.gch/
-rw-r--r-- root/root usr/include/c++/3.4.5/valarray
-rw-r--r-- root/root usr/include/c++/3.4.5/vector
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/ccache/
lrwxrwxrwx root/root usr/lib/ccache/mingw32-c++ -> ../../bin/ccache
lrwxrwxrwx root/root usr/lib/ccache/mingw32-cpp -> ../../bin/ccache
lrwxrwxrwx root/root usr/lib/ccache/mingw32-g++ -> ../../bin/ccache
lrwxrwxrwx root/root usr/lib/ccache/mingw32-gcc -> ../../bin/ccache
lrwxrwxrwx root/root usr/lib/ccache/mingw32-gccbug -> ../../bin/ccache
lrwxrwxrwx root/root usr/lib/ccache/mingw32-gcov -> ../../bin/ccache
drwxr-xr-x root/root usr/lib/distcc/
lrwxrwxrwx root/root usr/lib/distcc/mingw32-c++ -> ../../bin/distcc
lrwxrwxrwx root/root usr/lib/distcc/mingw32-cpp -> ../../bin/distcc
lrwxrwxrwx root/root usr/lib/distcc/mingw32-g++ -> ../../bin/distcc
lrwxrwxrwx root/root usr/lib/distcc/mingw32-gcc -> ../../bin/distcc
lrwxrwxrwx root/root usr/lib/distcc/mingw32-gccbug -> ../../bin/distcc
lrwxrwxrwx root/root usr/lib/distcc/mingw32-gcov -> ../../bin/distcc
drwxr-xr-x root/root usr/lib/gcc/
drwxr-xr-x root/root usr/lib/gcc/mingw32/
drwxr-xr-x root/root usr/lib/gcc/mingw32/3.4.5/

View File

@ -41,14 +41,32 @@ build() {
make CFLAGS="-O2" CXXFLAGS="-O2" GCJFLAGS="-O2" LDFLAGS="-s" DEBUG_FLAGS="-g0"
make DESTDIR=$PKG install
rm -r \
$PKG/usr/info \
$PKG/usr/man/man7 \
$PKG/usr/lib/gcc/mingw32/*/install-tools
rm \
$PKG/usr/lib/gcc/mingw32/*/include/README \
$PKG/usr/bin/mingw32-gcc-3.4.5 \
$PKG/usr/lib/libiberty.a
rm -r \
$PKG/usr/man/man7 \
$PKG/usr/lib/gcc/mingw32/*/install-tools
rm -rf $PKG/usr/info
# install distcc symlinks if distcc is installed
if pkginfo -i |grep '^distcc '; then
install -d $PKG/usr/lib/distcc
for c in mingw32-c++ mingw32-cpp mingw32-g++ mingw32-gcc mingw32-gccbug mingw32-gcov; do
cd $PKG/usr/lib/distcc && ln -s ../../bin/distcc $c
done
fi
# install ccache symlinks if ccache is installed
if pkginfo -i |grep '^ccache '; then
install -d $PKG/usr/lib/ccache
for c in mingw32-c++ mingw32-cpp mingw32-g++ mingw32-gcc mingw32-gccbug mingw32-gcov; do
cd $PKG/usr/lib/ccache && ln -s ../../bin/ccache $c
done
fi
}