Commit 851dbd67 authored by Simon Brass's avatar Simon Brass
Browse files

[gcc-build] add prerequisite

parent 7d0864e5
......@@ -7,6 +7,7 @@ function error_exit
}
set -x
MAKE_FLAGS="-j2"
TAR_FILE=`ls *.tar.bz2`
SRC=source
INST_DIR=${TAR_FILE/.tar.bz2/}
......@@ -30,8 +31,10 @@ mv $INST_DIR $SRC
mkdir $INST_DIR
cd $INST_DIR
../$SRC/contrib/download_prerequisites > prerequisite.log || error_exit "Download prerequisite failed. Abort."
../$SRC/configure --enable-languages=c,c++,fortran --disable-multilib -prefix=$PREFIX > configure.log || error_exit "Configuration failed. Abort."
make $HOST_MAKE_FLAGS -s V=0 > make.log || error_exit "Make failed. Abort."
make $MAKE_FLAGS -s V=0 > make.log || error_exit "Make failed. Abort."
mkdir -p $DEST_DIR/$PREFIX/lib
cd $DEST_DIR/$PREFIX
......@@ -39,7 +42,7 @@ cd $DEST_DIR/$PREFIX
ln -s lib lib64
cd $WORKSPACE/$INST_DIR
make $HOST_MAKE_FLAGS DESTDIR=$DEST_DIR -s V=0 install > make-install.log || exit_error "Make install failed. Abort."
make $MAKE_FLAGS DESTDIR=$DEST_DIR -s V=0 install > make-install.log || exit_error "Make install failed. Abort."
cd ..
rm -rf $INST_DIR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment