Honour %{powerpc64} (#834651)
This commit is contained in:
parent
d601902f2a
commit
cd2fda53d2
@ -17,7 +17,7 @@
|
|||||||
Summary: A GNU collection of binary utilities
|
Summary: A GNU collection of binary utilities
|
||||||
Name: %{?cross}binutils%{?_with_debug:-debug}
|
Name: %{?cross}binutils%{?_with_debug:-debug}
|
||||||
Version: 2.22.52.0.1
|
Version: 2.22.52.0.1
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
@ -179,6 +179,10 @@ do
|
|||||||
done
|
done
|
||||||
touch */configure
|
touch */configure
|
||||||
|
|
||||||
|
%ifarch %{power64}
|
||||||
|
%define _target_platform %{_arch}-%{_vendor}-%{_host_os}
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
echo target is %{binutils_target}
|
echo target is %{binutils_target}
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
@ -292,7 +296,7 @@ rm -f %{buildroot}%{_libdir}/lib{bfd,opcodes}.la
|
|||||||
# Sanity check --enable-64-bit-bfd really works.
|
# Sanity check --enable-64-bit-bfd really works.
|
||||||
grep '^#define BFD_ARCH_SIZE 64$' %{buildroot}%{_prefix}/include/bfd.h
|
grep '^#define BFD_ARCH_SIZE 64$' %{buildroot}%{_prefix}/include/bfd.h
|
||||||
# Fix multilib conflicts of generated values by __WORDSIZE-based expressions.
|
# Fix multilib conflicts of generated values by __WORDSIZE-based expressions.
|
||||||
%ifarch %{ix86} x86_64 ppc ppc64 s390 s390x sh3 sh4 sparc sparc64 arm
|
%ifarch %{ix86} x86_64 ppc %{power64} s390 s390x sh3 sh4 sparc sparc64 arm
|
||||||
sed -i -e '/^#include "ansidecl.h"/{p;s~^.*$~#include <bits/wordsize.h>~;}' \
|
sed -i -e '/^#include "ansidecl.h"/{p;s~^.*$~#include <bits/wordsize.h>~;}' \
|
||||||
-e 's/^#define BFD_DEFAULT_TARGET_SIZE \(32\|64\) *$/#define BFD_DEFAULT_TARGET_SIZE __WORDSIZE/' \
|
-e 's/^#define BFD_DEFAULT_TARGET_SIZE \(32\|64\) *$/#define BFD_DEFAULT_TARGET_SIZE __WORDSIZE/' \
|
||||||
-e 's/^#define BFD_HOST_64BIT_LONG [01] *$/#define BFD_HOST_64BIT_LONG (__WORDSIZE == 64)/' \
|
-e 's/^#define BFD_HOST_64BIT_LONG [01] *$/#define BFD_HOST_64BIT_LONG (__WORDSIZE == 64)/' \
|
||||||
@ -449,6 +453,9 @@ exit 0
|
|||||||
%endif # %{isnative}
|
%endif # %{isnative}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 26 2012 Nick Clifton <nickc@redhat.com> - 2.22.52.0.1-11
|
||||||
|
- Honour %{powerpc64} (#834651)
|
||||||
|
|
||||||
* Fri Mar 16 2012 Jakub Jelinek <jakub@redhat.com> - 2.22.52.0.1-10
|
* Fri Mar 16 2012 Jakub Jelinek <jakub@redhat.com> - 2.22.52.0.1-10
|
||||||
- Fix up handling of hidden ifunc relocs on i?86
|
- Fix up handling of hidden ifunc relocs on i?86
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user