This commit is contained in:
Xandros Desktop OS User 2009-07-17 09:24:58 -07:00
parent 4ac5d849cb
commit b7c84cadab
3 changed files with 25 additions and 38 deletions

Binary file not shown.

View file

@ -0,0 +1,25 @@
#!/bin/bash
set -o errexit
VERSION='4.4.0'
do_configure () {
mkdir ../gcc-build && cd ../gcc-build
../gcc-4.4.0/configure --prefix=/usr/local
}
do_build () {
make
sudo make DESTDIR=/stow/gcc-${VERSION} install
}
do_package () {
cd /stow
sudo tar -cjvf gcc-${VERSION}.stow.tar.bz2 gcc-${VERSION}
sudo mkdir --parent STOWBALLS
sudo mv --verbose gcc-${VERSION}.stow.tar.bz2 STOWBALLS
echo "Remember to stow and /sbin/ldconfig"
}
do_configure
do_build
do_package

View file

@ -1,38 +0,0 @@
#!/bin/bash
set -o errexit
VERSION='4.4.0'
BUILD_DIR='gcc-build'
do_configure () {
mkdir ../${BUILD_DIR} &&
cd ../${BUILD_DIR} &&
../gcc-${VERSION}/configure \
--prefix=/usr \
# --libexecdir=/usr/lib \
--enable-shared \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
# --enable-languages=c,c++,ada,fortran,java,objc,treelang
--enable-languages=c,c++ &&
cd -
}
do_build () {
cd ../${BUILD_DIR}
make
sudo make DESTDIR=/stow/gcc-${VERSION} install
cd -
}
do_package () {
cd /stow
tar -cjvf gcc-${VERSION}.stow.tar.bz2 gcc-${VERSION}
mkdir --parent STOWBALLS
mv tar -cjvf gcc-${VERSION}.stow.tar.bz2 STOWBALLS
cd -
}
do_configure
do_build
do_package