forked from pool/binutils
Accepting request 57991 from devel:gcc
Accepted submit request 57991 from user rguenther OBS-URL: https://build.opensuse.org/request/show/57991 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/binutils?expand=0&rev=52
This commit is contained in:
commit
6b6c528476
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d7dba3f489bac87608e41182ca25371794c3732b8086234d855851f84b1bbfc4
|
|
||||||
size 17963211
|
|
3
binutils-2.21.tar.bz2
Normal file
3
binutils-2.21.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:60abec5bf448eb930a5a15acb8712612377dc8bcfb13dfd5131228f70561d0c7
|
||||||
|
size 18742991
|
@ -1,13 +1,13 @@
|
|||||||
Index: ld/ldmain.c
|
Index: ld/ldmain.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ld/ldmain.c.orig 2009-11-23 14:03:09.000000000 +0100
|
--- ld/ldmain.c.orig 2011-01-11 11:10:59.000000000 +0100
|
||||||
+++ ld/ldmain.c 2009-11-23 14:03:10.000000000 +0100
|
+++ ld/ldmain.c 2011-01-11 11:20:56.000000000 +0100
|
||||||
@@ -277,6 +277,8 @@ main (int argc, char **argv)
|
@@ -284,6 +284,8 @@ main (int argc, char **argv)
|
||||||
link_info.pei386_auto_import = -1;
|
link_info.pei386_auto_import = -1;
|
||||||
link_info.spare_dynamic_tags = 5;
|
link_info.spare_dynamic_tags = 5;
|
||||||
link_info.path_separator = ':';
|
link_info.path_separator = ':';
|
||||||
+ if (getenv ("SUSE_ASNEEDED") && atoi(getenv ("SUSE_ASNEEDED")) > 0)
|
+ if (getenv ("SUSE_ASNEEDED") && atoi(getenv ("SUSE_ASNEEDED")) > 0)
|
||||||
+ as_needed = TRUE;
|
+ add_DT_NEEDED_for_regular = TRUE;
|
||||||
|
|
||||||
ldfile_add_arch ("");
|
ldfile_add_arch ("");
|
||||||
emulation = get_emulation (argc, argv);
|
emulation = get_emulation (argc, argv);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: ld/emultempl/elf32.em
|
Index: ld/emultempl/elf32.em
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ld/emultempl/elf32.em.orig 2009-11-23 14:02:48.000000000 +0100
|
--- ld/emultempl/elf32.em.orig 2010-10-29 14:10:36.000000000 +0200
|
||||||
+++ ld/emultempl/elf32.em 2009-11-23 14:03:07.000000000 +0100
|
+++ ld/emultempl/elf32.em 2011-01-10 17:42:31.000000000 +0100
|
||||||
@@ -1394,15 +1394,46 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" !=
|
@@ -1432,8 +1432,38 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" !=
|
||||||
else
|
else
|
||||||
ELF_INTERPRETER_SET_DEFAULT=
|
ELF_INTERPRETER_SET_DEFAULT=
|
||||||
fi
|
fi
|
||||||
@ -11,7 +11,6 @@ Index: ld/emultempl/elf32.em
|
|||||||
+ for path in $NATIVE_LIB_DIRS; do
|
+ for path in $NATIVE_LIB_DIRS; do
|
||||||
+ libpath_nl="$libpath_nl\n$path"
|
+ libpath_nl="$libpath_nl\n$path"
|
||||||
+ done
|
+ done
|
||||||
+
|
|
||||||
fragment <<EOF
|
fragment <<EOF
|
||||||
|
|
||||||
+static int
|
+static int
|
||||||
@ -39,18 +38,19 @@ Index: ld/emultempl/elf32.em
|
|||||||
+ return 0;
|
+ return 0;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
/* This is called after the sections have been attached to output
|
/* used by before_allocation and handle_option. */
|
||||||
sections, but before any sizes or addresses have been set. */
|
static void
|
||||||
|
gld${EMULATION_NAME}_append_to_separated_string (char **to, char *op_arg)
|
||||||
|
@@ -1480,7 +1510,7 @@ gld${EMULATION_NAME}_append_to_separated
|
||||||
static void
|
static void
|
||||||
gld${EMULATION_NAME}_before_allocation (void)
|
gld${EMULATION_NAME}_before_allocation (void)
|
||||||
{
|
{
|
||||||
- const char *rpath;
|
- const char *rpath;
|
||||||
+ char *rpath;
|
+ char *rpath;
|
||||||
asection *sinterp;
|
asection *sinterp;
|
||||||
|
bfd *abfd;
|
||||||
|
|
||||||
if (link_info.hash->type == bfd_link_elf_hash_table)
|
@@ -1496,7 +1526,65 @@ gld${EMULATION_NAME}_before_allocation (
|
||||||
@@ -1417,7 +1448,66 @@ gld${EMULATION_NAME}_before_allocation (
|
|
||||||
by dynamic linking. */
|
by dynamic linking. */
|
||||||
rpath = command_line.rpath;
|
rpath = command_line.rpath;
|
||||||
if (rpath == NULL)
|
if (rpath == NULL)
|
||||||
@ -114,7 +114,6 @@ Index: ld/emultempl/elf32.em
|
|||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+
|
|
||||||
if (! (bfd_elf_size_dynamic_sections
|
for (abfd = link_info.input_bfds; abfd; abfd = abfd->link_next)
|
||||||
(link_info.output_bfd, command_line.soname, rpath,
|
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
|
||||||
command_line.filter_shlib,
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: binutils
|
Name: binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -296,13 +297,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -316,31 +315,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -348,41 +342,26 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
%ifarch %gold_archs
|
||||||
|
--enable-gold \
|
||||||
|
%endif
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
%ifarch %gold_archs
|
|
||||||
mkdir ../build-dir2
|
|
||||||
cd ../build-dir2
|
|
||||||
../configure --disable-ld-targets %common_flags %extra_gold_targets \
|
|
||||||
--enable-shared --enable-gold --program-prefix=go --enable-plugins
|
|
||||||
make %{?_smp_mflags} all-opcodes
|
|
||||||
make %{?_smp_mflags} all
|
|
||||||
%endif
|
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%ifarch %gold_archs
|
|
||||||
cd ../build-dir2
|
|
||||||
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
|
|
||||||
%endif
|
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -451,15 +430,17 @@ cd build-dir
|
|||||||
%if "%name" == "binutils"
|
%if "%name" == "binutils"
|
||||||
# installing native binutils
|
# installing native binutils
|
||||||
%ifarch %gold_archs
|
%ifarch %gold_archs
|
||||||
cd ../build-dir2
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-gold
|
make DESTDIR=$RPM_BUILD_ROOT install-gold
|
||||||
cd ../build-dir
|
ln -sf ld.gold $RPM_BUILD_ROOT%{_bindir}/gold
|
||||||
%endif
|
%endif
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -474,6 +455,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
@ -535,6 +517,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%ifarch %gold_archs
|
%ifarch %gold_archs
|
||||||
%exclude %{_bindir}/gold
|
%exclude %{_bindir}/gold
|
||||||
|
%exclude %{_bindir}/ld.gold
|
||||||
%endif
|
%endif
|
||||||
%doc %{_infodir}/*.gz
|
%doc %{_infodir}/*.gz
|
||||||
%{_libdir}/lib*-%{version}*.so
|
%{_libdir}/lib*-%{version}*.so
|
||||||
@ -548,6 +531,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc gold/NEWS gold/README
|
%doc gold/NEWS gold/README
|
||||||
%{_bindir}/gold
|
%{_bindir}/gold
|
||||||
|
%{_bindir}/ld.gold
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-alpha-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-alpha-binutils
|
Name: cross-alpha-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-arm-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-arm-binutils
|
Name: cross-arm-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-hppa-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-hppa-binutils
|
Name: cross-hppa-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-hppa64-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-hppa64-binutils
|
Name: cross-hppa64-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-i386-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-i386-binutils
|
Name: cross-i386-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-ia64-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-ia64-binutils
|
Name: cross-ia64-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-mips-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-mips-binutils
|
Name: cross-mips-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-ppc-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-ppc-binutils
|
Name: cross-ppc-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-ppc64-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-ppc64-binutils
|
Name: cross-ppc64-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-s390-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-s390-binutils
|
Name: cross-s390-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-s390x-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-s390x-binutils
|
Name: cross-s390x-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-sh4-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-sh4-binutils
|
Name: cross-sh4-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-sparc-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-sparc-binutils
|
Name: cross-sparc-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-spu-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-spu-binutils
|
Name: cross-spu-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
|
||||||
|
|
||||||
|
- Update to binutils 2.21.
|
||||||
|
* linker plugin support
|
||||||
|
* AMD Bulldozer enablement
|
||||||
|
- Disable package fail when testsuite failures occur for now
|
||||||
|
because of gold (testsuite) issues.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cross-x86_64-binutils (Version 2.20.0)
|
# spec file for package binutils (Version 2.21)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Name: cross-x86_64-binutils
|
Name: cross-x86_64-binutils
|
||||||
BuildRequires: bison dejagnu flex gcc-c++
|
BuildRequires: bison dejagnu flex gcc-c++
|
||||||
|
# for some gold tests
|
||||||
|
BuildRequires: bc
|
||||||
%if 0%{suse_version} > 1110
|
%if 0%{suse_version} > 1110
|
||||||
BuildRequires: zlib-devel-static
|
BuildRequires: zlib-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Version: 2.20.0
|
Version: 2.21
|
||||||
Release: 11
|
Release: 11
|
||||||
#
|
#
|
||||||
# RUN_TESTS
|
# RUN_TESTS
|
||||||
@ -39,7 +41,8 @@ Release: 11
|
|||||||
%define make_check_handling true
|
%define make_check_handling true
|
||||||
%else
|
%else
|
||||||
# XXX check again
|
# XXX check again
|
||||||
%define make_check_handling false
|
# XXX disabled because gold is seriously broken for now
|
||||||
|
%define make_check_handling true
|
||||||
%endif
|
%endif
|
||||||
# let make check fail anyway if RUN_TESTS was requested
|
# let make check fail anyway if RUN_TESTS was requested
|
||||||
%if %{run_tests}
|
%if %{run_tests}
|
||||||
@ -79,15 +82,13 @@ Patch6: unit-at-a-time.patch
|
|||||||
Patch7: ld-dtags.diff
|
Patch7: ld-dtags.diff
|
||||||
Patch8: ld-relro.diff
|
Patch8: ld-relro.diff
|
||||||
Patch9: testsuite.diff
|
Patch9: testsuite.diff
|
||||||
Patch10: enable-targets.diff
|
Patch10: enable-targets-gold.diff
|
||||||
Patch11: use-hashtype-both-by-default.diff
|
Patch11: use-hashtype-both-by-default.diff
|
||||||
Patch12: s390-pic-dso.diff
|
Patch12: s390-pic-dso.diff
|
||||||
Patch14: binutils-build-as-needed.diff
|
Patch14: binutils-build-as-needed.diff
|
||||||
Patch15: fixup-testcase-perturb.diff
|
Patch15: fixup-testcase-perturb.diff
|
||||||
Patch16: fix-ppc-perturb.diff
|
|
||||||
Patch90: cross-avr-nesc-as.patch
|
Patch90: cross-avr-nesc-as.patch
|
||||||
Patch92: cross-avr-omit_section_dynsym.patch
|
Patch92: cross-avr-omit_section_dynsym.patch
|
||||||
Patch100: xop.diff.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if "%{name}" != "binutils"
|
%if "%{name}" != "binutils"
|
||||||
%define _prefix /opt/cross
|
%define _prefix /opt/cross
|
||||||
@ -268,13 +269,11 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
|||||||
%patch12
|
%patch12
|
||||||
%patch14
|
%patch14
|
||||||
%patch15
|
%patch15
|
||||||
%patch16 -p1
|
|
||||||
%if "%{TARGET}" == "avr"
|
%if "%{TARGET}" == "avr"
|
||||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||||
%patch90
|
%patch90
|
||||||
%patch92
|
%patch92
|
||||||
%endif
|
%endif
|
||||||
%patch100 -p1
|
|
||||||
#
|
#
|
||||||
# test_vanilla
|
# test_vanilla
|
||||||
%endif
|
%endif
|
||||||
@ -288,31 +287,26 @@ echo "Building native binutils."
|
|||||||
%if %build_multitarget
|
%if %build_multitarget
|
||||||
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
|
||||||
%if !%{test_vanilla}
|
|
||||||
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
EXTRA_TARGETS=
|
EXTRA_TARGETS=
|
||||||
%endif
|
|
||||||
EXTRA_LD_TARGETS=
|
|
||||||
%ifarch sparc
|
%ifarch sparc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
|
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
|
||||||
%endif
|
%endif
|
||||||
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
|
|
||||||
%ifarch ppc ppc64
|
%ifarch ppc ppc64
|
||||||
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||||
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
--prefix=%{_prefix} --libdir=%{_libdir} \\\
|
||||||
@ -320,29 +314,23 @@ EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
|
|||||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||||
--with-pic --build=%{HOST} \\\
|
--with-pic --build=%{HOST}
|
||||||
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
|
|
||||||
%define extra_ld_targets \\\
|
|
||||||
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
|
|
||||||
%define extra_gold_targets \\\
|
|
||||||
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
|
|
||||||
mkdir build-dir
|
mkdir build-dir
|
||||||
cd build-dir
|
cd build-dir
|
||||||
../configure %common_flags %extra_ld_targets --enable-shared
|
../configure %common_flags \
|
||||||
|
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
|
||||||
|
--enable-plugins \
|
||||||
|
--enable-shared
|
||||||
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
|
||||||
# force reconfiguring
|
# force reconfiguring (???)
|
||||||
rm bfd/Makefile
|
rm bfd/Makefile
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mkdir ../build-dir3
|
|
||||||
cd ../build-dir3
|
|
||||||
../configure %common_flags --disable-shared
|
|
||||||
make %{?_smp_mflags} all-bfd all-opcodes
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export SUSE_ASNEEDED=0
|
export SUSE_ASNEEDED=0
|
||||||
cd build-dir
|
cd build-dir
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
|
make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@ -412,9 +400,12 @@ cd build-dir
|
|||||||
# installing native binutils
|
# installing native binutils
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
make DESTDIR=$RPM_BUILD_ROOT install-info install
|
||||||
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
|
||||||
cd ../build-dir3
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||||
cd ../build-dir
|
# we could eventually use alternatives for /usr/bin/ld
|
||||||
|
if test -f $RPM_BUILD_ROOT%{_bindir}/ld.bfd; then
|
||||||
|
rm $RPM_BUILD_ROOT%{_bindir}/ld
|
||||||
|
ln -sf ld.bfd $RPM_BUILD_ROOT%{_bindir}/ld;
|
||||||
|
fi
|
||||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
ln -sf ../../bin/{ar,as,ld,nm,ranlib,strip} $RPM_BUILD_ROOT%{_prefix}/%{HOST}/bin
|
||||||
@ -429,6 +420,7 @@ chmod a+x $RPM_BUILD_ROOT%{_libdir}/libbfd-*
|
|||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/libopcodes-*
|
||||||
# No shared linking outside binutils
|
# No shared linking outside binutils
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
|
||||||
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.la
|
||||||
# Remove unwanted files to shut up rpm
|
# Remove unwanted files to shut up rpm
|
||||||
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
rm $RPM_BUILD_ROOT%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||||
|
14
enable-targets-gold.diff
Normal file
14
enable-targets-gold.diff
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--- gold/configure.orig 2011-01-11 12:22:06.000000000 +0100
|
||||||
|
+++ gold/configure 2011-01-11 12:23:38.000000000 +0100
|
||||||
|
@@ -3389,7 +3389,8 @@
|
||||||
|
. ${srcdir}/configure.tgt
|
||||||
|
|
||||||
|
if test "$targ_obj" = "UNKNOWN"; then
|
||||||
|
- as_fn_error "\"unsupported target $targ\"" "$LINENO" 5
|
||||||
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"unsupported target $targ\"" >&5
|
||||||
|
+$as_echo "$as_me: WARNING: \"unsupported target $targ\"" >&2;}
|
||||||
|
else
|
||||||
|
targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
|
||||||
|
if test "$targ_extra_obj" != ""; then
|
||||||
|
|
||||||
|
|
@ -1,134 +0,0 @@
|
|||||||
Index: gold/configure
|
|
||||||
===================================================================
|
|
||||||
--- gold/configure.orig 2009-11-23 14:02:48.000000000 +0100
|
|
||||||
+++ gold/configure 2009-11-23 14:03:09.000000000 +0100
|
|
||||||
@@ -762,6 +762,7 @@ with_sysroot
|
|
||||||
enable_threads
|
|
||||||
enable_plugins
|
|
||||||
enable_targets
|
|
||||||
+enable_ld_targets
|
|
||||||
enable_dependency_tracking
|
|
||||||
enable_nls
|
|
||||||
enable_werror
|
|
||||||
@@ -1406,6 +1407,7 @@ Optional Features:
|
|
||||||
--enable-threads multi-threaded linking
|
|
||||||
--enable-plugins linker plugins
|
|
||||||
--enable-targets alternative target configurations
|
|
||||||
+ --enable-ld-targets alternative target configurations
|
|
||||||
--disable-dependency-tracking speeds up one-time build
|
|
||||||
--enable-dependency-tracking do not reject slow dependency extractors
|
|
||||||
--disable-nls do not use Native Language Support
|
|
||||||
@@ -3297,9 +3299,29 @@ else
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
+# Check whether --enable-ld-targets was given.
|
|
||||||
+if test "${enable_ld_targets+set}" = set; then :
|
|
||||||
+ enableval=$enable_ld_targets; case "${enableval}" in
|
|
||||||
+ yes | "")
|
|
||||||
+ as_fn_error "--enable-ld-targets option must specify target names or 'all'" "$LINENO" 5
|
|
||||||
+ ;;
|
|
||||||
+ no)
|
|
||||||
+ enable_ld_targets=
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ enable_ld_targets=$enableval
|
|
||||||
+ ;;
|
|
||||||
+esac
|
|
||||||
+else
|
|
||||||
+ # For now, enable all targets by default
|
|
||||||
+ enable_ld_targets=$enable_targets
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+
|
|
||||||
# Canonicalize the enabled targets.
|
|
||||||
-if test -n "$enable_targets"; then
|
|
||||||
- for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
|
|
||||||
+if test -n "$enable_ld_targets"; then
|
|
||||||
+ for targ in `echo $enable_ld_targets | sed -e 's/,/ /g'`; do
|
|
||||||
result=`$ac_config_sub $targ 2>/dev/null`
|
|
||||||
if test -n "$result"; then
|
|
||||||
canon_targets="$canon_targets $result"
|
|
||||||
Index: gold/configure.ac
|
|
||||||
===================================================================
|
|
||||||
--- gold/configure.ac.orig 2009-11-23 14:02:48.000000000 +0100
|
|
||||||
+++ gold/configure.ac 2009-11-23 14:03:09.000000000 +0100
|
|
||||||
@@ -84,9 +84,26 @@ esac],
|
|
||||||
enable_targets=all
|
|
||||||
])
|
|
||||||
|
|
||||||
+AC_ARG_ENABLE([ld-targets],
|
|
||||||
+[ --enable-ld-targets alternative target configurations],
|
|
||||||
+[case "${enableval}" in
|
|
||||||
+ yes | "")
|
|
||||||
+ AC_MSG_ERROR([--enable-ld-targets option must specify target names or 'all'])
|
|
||||||
+ ;;
|
|
||||||
+ no)
|
|
||||||
+ enable_ld_targets=
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ enable_ld_targets=$enableval
|
|
||||||
+ ;;
|
|
||||||
+esac],
|
|
||||||
+[# For now, enable all targets by default
|
|
||||||
+ enable_ld_targets=$enable_targets
|
|
||||||
+])
|
|
||||||
+
|
|
||||||
# Canonicalize the enabled targets.
|
|
||||||
-if test -n "$enable_targets"; then
|
|
||||||
- for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
|
|
||||||
+if test -n "$enable_ld_targets"; then
|
|
||||||
+ for targ in `echo $enable_ld_targets | sed -e 's/,/ /g'`; do
|
|
||||||
result=`$ac_config_sub $targ 2>/dev/null`
|
|
||||||
if test -n "$result"; then
|
|
||||||
canon_targets="$canon_targets $result"
|
|
||||||
Index: ld/configure
|
|
||||||
===================================================================
|
|
||||||
--- ld/configure.orig 2009-11-23 14:02:48.000000000 +0100
|
|
||||||
+++ ld/configure 2009-11-23 14:03:09.000000000 +0100
|
|
||||||
@@ -1547,6 +1547,7 @@ Optional Features:
|
|
||||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
|
||||||
(and sometimes confusing) to the casual installer
|
|
||||||
--enable-targets alternative target configurations
|
|
||||||
+ --enable-ld-targets alternative target configurations
|
|
||||||
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
|
|
||||||
--enable-got=<type> GOT handling scheme (target, single, negative,
|
|
||||||
multigot)
|
|
||||||
@@ -12818,7 +12819,7 @@ all_libpath=
|
|
||||||
|
|
||||||
rm -f tdirs
|
|
||||||
|
|
||||||
-for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
|
|
||||||
+for targ_alias in `echo $target_alias $enable_ld_targets | sed 's/,/ /g'`
|
|
||||||
do
|
|
||||||
if test "$targ_alias" = "all"; then
|
|
||||||
all_targets=true
|
|
||||||
Index: ld/configure.in
|
|
||||||
===================================================================
|
|
||||||
--- ld/configure.in.orig 2009-11-23 14:02:48.000000000 +0100
|
|
||||||
+++ ld/configure.in 2009-11-23 14:03:09.000000000 +0100
|
|
||||||
@@ -22,6 +22,14 @@ AC_ARG_ENABLE(targets,
|
|
||||||
no) enable_targets= ;;
|
|
||||||
*) enable_targets=$enableval ;;
|
|
||||||
esac])dnl
|
|
||||||
+AC_ARG_ENABLE(ld-targets,
|
|
||||||
+[ --enable-ld-targets alternative target configurations],
|
|
||||||
+[case "${enableval}" in
|
|
||||||
+ yes | "") AC_ERROR(enable-ld-targets option must specify target names or 'all')
|
|
||||||
+ ;;
|
|
||||||
+ no) enable_ld_targets= ;;
|
|
||||||
+ *) enable_ld_targets=$enableval ;;
|
|
||||||
+esac], [enable_ld_targets=$enable_targets])dnl
|
|
||||||
AC_ARG_ENABLE(64-bit-bfd,
|
|
||||||
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
|
|
||||||
[case "${enableval}" in
|
|
||||||
@@ -190,7 +198,7 @@ dnl not permit literal newlines in an AC
|
|
||||||
dnl file.
|
|
||||||
rm -f tdirs
|
|
||||||
|
|
||||||
-for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
|
|
||||||
+for targ_alias in `echo $target_alias $enable_ld_targets | sed 's/,/ /g'`
|
|
||||||
do
|
|
||||||
if test "$targ_alias" = "all"; then
|
|
||||||
all_targets=true
|
|
@ -1,8 +1,8 @@
|
|||||||
Index: bfd/elf32-s390.c
|
Index: bfd/elf32-s390.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- bfd/elf32-s390.c.orig 2009-11-23 14:02:48.000000000 +0100
|
--- bfd/elf32-s390.c.orig 2010-10-25 17:54:14.000000000 +0200
|
||||||
+++ bfd/elf32-s390.c 2009-11-23 14:03:09.000000000 +0100
|
+++ bfd/elf32-s390.c 2011-01-10 17:46:32.000000000 +0100
|
||||||
@@ -2509,13 +2509,34 @@ elf_s390_relocate_section (output_bfd, i
|
@@ -2504,13 +2504,34 @@ elf_s390_relocate_section (output_bfd, i
|
||||||
unresolved_reloc = FALSE;
|
unresolved_reloc = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -42,9 +42,9 @@ Index: bfd/elf32-s390.c
|
|||||||
|
|
||||||
Index: bfd/elf64-s390.c
|
Index: bfd/elf64-s390.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- bfd/elf64-s390.c.orig 2009-11-23 14:02:48.000000000 +0100
|
--- bfd/elf64-s390.c.orig 2010-10-25 17:54:15.000000000 +0200
|
||||||
+++ bfd/elf64-s390.c 2009-11-23 14:03:09.000000000 +0100
|
+++ bfd/elf64-s390.c 2011-01-10 17:46:32.000000000 +0100
|
||||||
@@ -2486,15 +2486,36 @@ elf_s390_relocate_section (output_bfd, i
|
@@ -2497,15 +2497,36 @@ elf_s390_relocate_section (bfd *output_b
|
||||||
unresolved_reloc = FALSE;
|
unresolved_reloc = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -87,17 +87,17 @@ Index: bfd/elf64-s390.c
|
|||||||
|
|
||||||
Index: ld/testsuite/ld-elfvers/vers.exp
|
Index: ld/testsuite/ld-elfvers/vers.exp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ld/testsuite/ld-elfvers/vers.exp.orig 2009-11-23 14:02:48.000000000 +0100
|
--- ld/testsuite/ld-elfvers/vers.exp.orig 2010-11-05 04:54:21.000000000 +0100
|
||||||
+++ ld/testsuite/ld-elfvers/vers.exp 2009-11-23 14:03:09.000000000 +0100
|
+++ ld/testsuite/ld-elfvers/vers.exp 2011-01-10 17:47:22.000000000 +0100
|
||||||
@@ -97,6 +97,7 @@ if [istarget mips*-*-*] {
|
@@ -97,6 +97,7 @@ if [istarget mips*-*-*] {
|
||||||
|
|
||||||
case $target_triplet in {
|
case $target_triplet in {
|
||||||
{ ia64-*-* } { set as_options "-x" }
|
{ ia64-*-* } { set as_options "-x" }
|
||||||
+ { s390-*-linux-* } { set as_options "-march=z900" }
|
+ { s390-*-linux-* } { set as_options "-march=z900" }
|
||||||
|
{ sparc-*-* } { set as_options "-Av9a" }
|
||||||
default { set as_options "" }
|
default { set as_options "" }
|
||||||
}
|
}
|
||||||
|
@@ -768,8 +769,9 @@ proc build_exec { test source execname f
|
||||||
@@ -767,8 +768,9 @@ proc build_exec { test source execname f
|
|
||||||
pass $test
|
pass $test
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,9 +111,9 @@ Index: ld/testsuite/ld-elfvers/vers.exp
|
|||||||
set pic "no"
|
set pic "no"
|
||||||
Index: ld/testsuite/ld-elfvsb/elfvsb.exp
|
Index: ld/testsuite/ld-elfvsb/elfvsb.exp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ld/testsuite/ld-elfvsb/elfvsb.exp.orig 2009-11-23 14:02:48.000000000 +0100
|
--- ld/testsuite/ld-elfvsb/elfvsb.exp.orig 2010-02-09 11:46:26.000000000 +0100
|
||||||
+++ ld/testsuite/ld-elfvsb/elfvsb.exp 2009-11-23 14:03:09.000000000 +0100
|
+++ ld/testsuite/ld-elfvsb/elfvsb.exp 2011-01-10 17:46:32.000000000 +0100
|
||||||
@@ -269,6 +269,7 @@ proc visibility_run {visibility} {
|
@@ -292,6 +292,7 @@ proc visibility_run {visibility} {
|
||||||
setup_xfail "sparc*-*-linux*"
|
setup_xfail "sparc*-*-linux*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -121,7 +121,7 @@ Index: ld/testsuite/ld-elfvsb/elfvsb.exp
|
|||||||
setup_xfail "x86_64-*-linux*"
|
setup_xfail "x86_64-*-linux*"
|
||||||
if { ![istarget hppa*64*-*-linux*] } {
|
if { ![istarget hppa*64*-*-linux*] } {
|
||||||
setup_xfail "hppa*-*-linux*"
|
setup_xfail "hppa*-*-linux*"
|
||||||
@@ -307,6 +308,7 @@ proc visibility_run {visibility} {
|
@@ -333,6 +334,7 @@ proc visibility_run {visibility} {
|
||||||
setup_xfail "alpha*-*-linux*"
|
setup_xfail "alpha*-*-linux*"
|
||||||
setup_xfail "mips*-*-linux*"
|
setup_xfail "mips*-*-linux*"
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ Index: ld/testsuite/ld-elfvsb/elfvsb.exp
|
|||||||
setup_xfail "x86_64-*-linux*"
|
setup_xfail "x86_64-*-linux*"
|
||||||
if { ![istarget hppa*64*-*-linux*] } {
|
if { ![istarget hppa*64*-*-linux*] } {
|
||||||
setup_xfail "hppa*-*-linux*"
|
setup_xfail "hppa*-*-linux*"
|
||||||
@@ -373,6 +375,7 @@ proc visibility_run {visibility} {
|
@@ -402,6 +404,7 @@ proc visibility_run {visibility} {
|
||||||
setup_xfail "sparc*-*-linux*"
|
setup_xfail "sparc*-*-linux*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -139,32 +139,32 @@ Index: ld/testsuite/ld-elfvsb/elfvsb.exp
|
|||||||
setup_xfail "hppa*-*-linux*"
|
setup_xfail "hppa*-*-linux*"
|
||||||
Index: ld/testsuite/ld-shared/shared.exp
|
Index: ld/testsuite/ld-shared/shared.exp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ld/testsuite/ld-shared/shared.exp.orig 2009-11-23 14:02:48.000000000 +0100
|
--- ld/testsuite/ld-shared/shared.exp.orig 2010-10-28 11:08:35.000000000 +0200
|
||||||
+++ ld/testsuite/ld-shared/shared.exp 2009-11-23 14:03:09.000000000 +0100
|
+++ ld/testsuite/ld-shared/shared.exp 2011-01-10 17:48:12.000000000 +0100
|
||||||
@@ -211,7 +211,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
|
@@ -234,7 +234,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
|
||||||
setup_xfail "sparc*-*-linux*"
|
setup_xfail "sparc*-*-linux*"
|
||||||
}
|
}
|
||||||
setup_xfail "x86_64-*-linux*"
|
setup_xfail "x86_64-*-linux*"
|
||||||
- setup_xfail "s390x-*-linux*"
|
- setup_xfail "s390x-*-linux*"
|
||||||
+ setup_xfail "s390*-*-linux*"
|
+ setup_xfail "s390*-*-linux*"
|
||||||
shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared
|
if [ string match $shared_needs_pic "yes" ] {
|
||||||
|
setup_xfail "arm*-*-linux*"
|
||||||
# Test ELF shared library relocations with a non-zero load
|
}
|
||||||
@@ -231,7 +231,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
|
@@ -257,7 +257,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
|
||||||
setup_xfail "sparc*-*-linux*"
|
setup_xfail "sparc*-*-linux*"
|
||||||
}
|
}
|
||||||
setup_xfail "x86_64-*-linux*"
|
setup_xfail "x86_64-*-linux*"
|
||||||
- setup_xfail "s390x-*-linux*"
|
- setup_xfail "s390x-*-linux*"
|
||||||
+ setup_xfail "s390*-*-linux*"
|
+ setup_xfail "s390*-*-linux*"
|
||||||
shared_test shnp "shared (non PIC, load offset)" \
|
if [ string match $shared_needs_pic "yes" ] {
|
||||||
mainnp.o sh1np.o sh2np.o shared \
|
setup_xfail "arm*-*-linux*"
|
||||||
"-T $srcdir/$subdir/elf-offset.ld"
|
}
|
||||||
@@ -280,7 +280,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $p
|
@@ -310,7 +310,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $p
|
||||||
setup_xfail "sparc*-*-linux*"
|
setup_xfail "sparc*-*-linux*"
|
||||||
}
|
}
|
||||||
setup_xfail "x86_64-*-linux*"
|
setup_xfail "x86_64-*-linux*"
|
||||||
- setup_xfail "s390x-*-linux*"
|
- setup_xfail "s390x-*-linux*"
|
||||||
+ setup_xfail "s390*-*-linux*"
|
+ setup_xfail "s390*-*-linux*"
|
||||||
shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared
|
if [ string match $shared_needs_pic "yes" ] {
|
||||||
|
setup_xfail "arm*-*-linux*"
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
Index: libiberty/configure
|
Index: libiberty/configure
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libiberty/configure.orig 2009-11-23 14:02:49.000000000 +0100
|
--- libiberty/configure.orig 2010-11-05 11:31:22.000000000 +0100
|
||||||
+++ libiberty/configure 2009-11-23 14:03:07.000000000 +0100
|
+++ libiberty/configure 2011-01-10 17:45:26.000000000 +0100
|
||||||
@@ -4859,7 +4859,7 @@ if [ "${shared}" = "yes" ]; then
|
@@ -4865,7 +4865,7 @@ if [ "${shared}" = "yes" ]; then
|
||||||
*-fpic* ) PICFLAG=-fpic ;;
|
*-fpic* ) PICFLAG=-fpic ;;
|
||||||
* ) PICFLAG=-fPIC ;;
|
* ) PICFLAG=-fPIC ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
- s390*-*-*) PICFLAG=-fpic ;;
|
- s390*-*-*) PICFLAG=-fpic ;;
|
||||||
+ s390*-*-*) PICFLAG=-fPIC ;;
|
+ s390*-*-*) PICFLAG=-fPIC ;;
|
||||||
|
sh*-*-*) PICFLAG=-fPIC ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Index: libiberty/configure.ac
|
Index: libiberty/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libiberty/configure.ac.orig 2009-11-23 14:02:49.000000000 +0100
|
--- libiberty/configure.ac.orig 2010-11-05 00:41:21.000000000 +0100
|
||||||
+++ libiberty/configure.ac 2009-11-23 14:03:07.000000000 +0100
|
+++ libiberty/configure.ac 2011-01-10 17:45:33.000000000 +0100
|
||||||
@@ -216,7 +216,7 @@ if [[ "${shared}" = "yes" ]]; then
|
@@ -216,7 +216,7 @@ if [[ "${shared}" = "yes" ]]; then
|
||||||
*-fpic* ) PICFLAG=-fpic ;;
|
*-fpic* ) PICFLAG=-fpic ;;
|
||||||
* ) PICFLAG=-fPIC ;;
|
* ) PICFLAG=-fPIC ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
- s390*-*-*) PICFLAG=-fpic ;;
|
- s390*-*-*) PICFLAG=-fpic ;;
|
||||||
+ s390*-*-*) PICFLAG=-fPIC ;;
|
+ s390*-*-*) PICFLAG=-fPIC ;;
|
||||||
|
sh*-*-*) PICFLAG=-fPIC ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
AC_SUBST(PICFLAG)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user