Fix: Circumvent problems with parallel build.

This commit is contained in:
Christoph Niethammer 2011-02-24 14:55:42 +00:00
parent 8d1687e02d
commit a3a97bf6ec

View file

@ -48,7 +48,8 @@ P=${PACKAGE}-${VERSION}
# CONFIGURE_OPTS=""
#NP=$(cat /proc/cpuinfo | grep processor | wc -l)
#MAKEOPTS="-j$NP"
MAKEOPTS="-j2"
# starss has problems when build in parallel
MAKEOPTS="-j1"
# Compiler specifications
@ -143,17 +144,15 @@ case "${A##*.}" in
;;
esac
# TODO add autoreconf
# TODO check subdirectory build
mkdir ${BUILDDIR}
cd ${BUILDDIR}
cd ${SRCDIR}
# updating build tools and environment
if [ "$SVN_BUILD" == "yes" ]; then
# updating build tools and environment
autoreconf -fiv
fi
mkdir ${BUILDDIR} -p
cd ${BUILDDIR}
echo "Running configure"
${SRCDIR}/configure --prefix=${PREFIX} ${CONFIGURE_OPTS} ${COMPILER_OPTS} 2>&1 | tee configure.log
echo "Running make"