From 84801c5cf652f195d449f20910aeb57edd7c8fb1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sep 12 2006 12:34:17 +0000 Subject: 2.17.50.0.3-6 --- diff --git a/binutils.spec b/binutils.spec index e136dcc..fe00521 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: A GNU collection of binary utilities. Name: binutils Version: 2.17.50.0.3 -Release: 5 +Release: 6 License: GPL Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -135,6 +135,23 @@ rm -f %{buildroot}%{_prefix}/%{_lib}/lib{bfd,opcodes}.la rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{_target_platform} +%ifarch %{ix86} x86_64 ppc ppc64 s390 s390x sparc sparc64 +sed -i -e '/^#include "ansidecl.h"/{p;s~^.*$~#include ~;}' \ +%ifarch %{ix86} x86_64 + -e 's/^#define BFD_ARCH_SIZE \(32\|64\) *$/#define BFD_ARCH_SIZE __WORDSIZE/' \ +%endif + -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_64_BIT \(long \)\?long *$/#if __WORDSIZE == 32\ +#define BFD_HOST_64_BIT long long\ +#else\ +#define BFD_HOST_64_BIT long\ +#endif/' \ + -e 's/^#define BFD_HOST_U_64_BIT unsigned \(long \)\?long *$/#define BFD_HOST_U_64_BIT unsigned BFD_HOST_64_BIT/' \ + %{buildroot}%{_prefix}/include/bfd.h +%endif +touch -r ../bfd/bfd-in2.h %{buildroot}%{_prefix}/include/bfd.h + cd .. %find_lang binutils %find_lang opcodes @@ -196,6 +213,9 @@ fi %{_infodir}/bfd*info* %changelog +* Tue Sep 12 2006 Jakub Jelinek 2.17.50.0.3-6 +- fix multilib conflict in %{_prefix}/include/bfd.h + * Tue Sep 12 2006 Jakub Jelinek 2.17.50.0.3-5 - fix efi-app-ia64 magic number (#206002, BZ#3171)