summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/parallelize_build18
1 files changed, 12 insertions, 6 deletions
diff --git a/gcc/parallelize_build b/gcc/parallelize_build
index 5f3b3ed..cf55c21 100755
--- a/gcc/parallelize_build
+++ b/gcc/parallelize_build
@@ -141,15 +141,21 @@ if [ ${do_prep} = "yes" ] ; then
mkdir ${INSTALL}
fi
+ # Autoconf and automake must be installed before we bootstrap RTEMS
+ cd ${BASEDIR}/${AUTOCONF} && \
+ (./configure --prefix=${INSTALL} && make && make install) \
+ >${LOGDIR}/autoconf.log 2>&1
+ check_fatal ${status} "*** Failed to build and install ${AUTOCONF}"
+
+ cd ${BASEDIR}/${AUTOMAKE} && \
+ (./configure --prefix=${INSTALL} && make && make install) \
+ >${LOGDIR}/autoconf.log 2>&1
+ check_fatal ${status} "*** Failed to build and install ${AUTOMAKE}"
+
+ # We can bootstrap RTEMS and build a native compiler in parallel
parallel --verbose ${JOBS} ${dryrun} <<EOF
(cd ${RTEMSDIR} && ./bootstrap -c && ./bootstrap) >${LOGDIR}/bootstrap.log 2>&1
${SCRIPTDIR}/gcc/do_one -n
-cd ${AUTOCONF} && \
- (./configure --prefix=${INSTALL} && make && make install) \
- >${LOGDIR}/autoconf.log 2>&1
-cd ${AUTOMAKE} && \
- (./configure --prefix=${INSTALL} && make && make install) \
- >${LOGDIR}/automake.log 2>&1
EOF
status=$?