summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-01-11 11:04:06 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-01-11 11:04:06 -0600
commitae6fbf2af57b5581f6d458c1c9bab17285422e57 (patch)
tree074402cafeddcea59aa718b595dd999dd6cfa2e1 /gcc
parent4bb4bce05a29a45b472a2b02dd14dfef252d2f2d (diff)
parallelize_build: autotools before RTEMS bootstrap
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=$?