[cross-gcc] make sure gcc is built before building libgcc because gcc build-system seems not being SMP safe
Dan Horák
sharkcz at fedoraproject.org
Sun Dec 2 15:18:45 UTC 2012
commit 2cb4343eec989d6befc5562a6de26c997a6679c1
Author: Dan Horák <dan at danny.cz>
Date: Sun Dec 2 16:16:42 2012 +0100
make sure gcc is built before building libgcc because gcc build-system seems not being SMP safe
cross-gcc.spec | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/cross-gcc.spec b/cross-gcc.spec
index 7ec7ea7..a1da850 100644
--- a/cross-gcc.spec
+++ b/cross-gcc.spec
@@ -427,11 +427,6 @@ done
function build_target () {
arch=$1
- case $arch in
- %{no_libgcc_targets}) with_libgcc="";;
- *) with_libgcc="all-target-libgcc";;
- esac
-
AR_FOR_TARGET=%{_bindir}/$arch-ar \
AS_FOR_TARGET=%{_bindir}/$arch-as \
DLLTOOL_FOR_TARGET=%{_bindir}/$arch-dlltool \
@@ -442,7 +437,16 @@ function build_target () {
STRIP_FOR_TARGET=%{_bindir}/$arch-strip \
WINDRES_FOR_TARGET=%{_bindir}/$arch-windres \
WINDMC_FOR_TARGET=%{_bindir}/$arch-windmc \
- make -C $target %{_smp_mflags} tooldir=%{_prefix} all-gcc ${with_libgcc}
+ make -C $target %{_smp_mflags} tooldir=%{_prefix} all-gcc
+
+ case $arch in
+ %{no_libgcc_targets})
+ ;;
+ *)
+ make -C $target %{_smp_mflags} tooldir=%{_prefix} all-target-libgcc
+ ;;
+ esac
+
}
for target in `cat target.list`
More information about the scm-commits
mailing list