#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-g77 SRC=/devel/manpagesrc INFO=/devel/info-pages/usr/info TEX=/devel/texinfo-docs if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi #if [ ! -d $PKG ]; then # mkdir -p $PKG # place for the package to be built #fi # Explode the package framework: #cd $PKG #explodepkg $CWD/_g77.tar.gz echo "+=============+" echo "| gcc-2.7.2.3 |" echo "+=============+" cd $TMP tar xzvf $CWD/gcc-2.7.2.3.tar.gz cd gcc-2.7.2.3 zcat $CWD/gcc-2.7.2.3-ada.diff.gz | patch -p2 ./configure --build=i486-unknown-linuxaout --prefix=/usr --local-prefix=/usr/local --gxx-include-dir=/usr/include/g++ # Rebuild documentation, since g77 has patched the texinfo files. make -f Makefile.in gcc.info #make LANGUAGES=c CC=gcc CFLAGS=-O2 LDFLAGS=-s #make stage1 #make CC="stage1/xgcc -Bstage1/" CFLAGS=-O2 LDFLAGS=-s #make objc-runtime CC="stage1/xgcc -Bstage1/" CFLAGS=-O2 LDFLAGS=-s make -k CC=gcc CFLAGS=-O2 LDFLAGS=-s LANGUAGES="c c++ objective-c" make objc-runtime CC=gcc CFLAGS=-O2 LDFLAGS=-s # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/gcc-2.7.2.3 rm -rf $PKG fi