forked from pool/binutils
Accepting request 124950 from home:coolo:branches:openSUSE:Factory
- exclude our target arch for cross compiling - this is just not cross OBS-URL: https://build.opensuse.org/request/show/124950 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=92
This commit is contained in:
@@ -7,13 +7,15 @@ for arch in hppa hppa64 mips arm i386 x86_64 s390 s390x ppc ppc64 ia64 sparc alp
|
||||
echo -n "Building package for $arch --> cross-$arch-binutils ..."
|
||||
|
||||
ln -f binutils.changes cross-$arch-binutils.changes
|
||||
targetarch=`echo $arch | sed -e "s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/"`
|
||||
( echo "%define cross 1"
|
||||
echo "%define TARGET $arch" \
|
||||
| sed -e "s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/"
|
||||
echo "%define TARGET $targetarch"
|
||||
) > cross-$arch-binutils.spec
|
||||
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils/" \
|
||||
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils/; s/^ExcludeArch:.*/ExcludeArch: $targetarch/" \
|
||||
< binutils.spec >> cross-$arch-binutils.spec
|
||||
|
||||
echo " done."
|
||||
done
|
||||
|
||||
osc service localrun format_spec_file
|
||||
|
||||
|
Reference in New Issue
Block a user