summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cross-binutils.spec15
1 files changed, 13 insertions, 2 deletions
diff --git a/cross-binutils.spec b/cross-binutils.spec
index fa0c381..f248c15 100644
--- a/cross-binutils.spec
+++ b/cross-binutils.spec
@@ -47,7 +47,7 @@
Summary: A GNU collection of cross-compilation binary utilities
Name: %{cross}-binutils
Version: 2.24
-Release: 4%{?dist}
+Release: 5%{?dist}
License: GPLv3+
Group: Development/Tools
URL: http://sources.redhat.com/binutils
@@ -409,6 +409,7 @@ function config_target () {
--disable-shared \
--disable-install_libbfd \
--with-sysroot=%{_prefix}/$arch/sys-root \
+ --enable-gold \
$CARGS \
--with-bugurl=http://bugzilla.redhat.com/bugzilla/
cd ..
@@ -429,7 +430,11 @@ do
build_target $target
done
-# for documentation purposes only
+# This build is for documentation purposes only. It doesn't matter what
+# the target is since we don't use those parts of this build anyway, but
+# we need to make sure it's a target that gold supports--even if it
+# doesn't support the rpmbuild host as target--just so that gold's .mo
+# files definitely get built.
mkdir %{cross}-binutils
cd %{cross}-binutils
../%{srcdir}/configure \
@@ -450,6 +455,7 @@ cd %{cross}-binutils
--infodir=%{_infodir} \
--program-prefix=%{cross}- \
--disable-shared \
+ --enable-gold --target=x86_64-linux-gnu \
--with-bugurl=http://bugzilla.redhat.com/bugzilla/
make %{_smp_mflags} tooldir=%{_prefix} all
cd ..
@@ -604,12 +610,14 @@ cd -
%find_lang %{cross}-bfd
%find_lang %{cross}-gas
%find_lang %{cross}-ld
+ %find_lang %{cross}-gold
%find_lang %{cross}-gprof
cat %{cross}-binutils.lang
cat %{cross}-opcodes.lang
cat %{cross}-bfd.lang
cat %{cross}-gas.lang
cat %{cross}-ld.lang
+ cat %{cross}-gold.lang
cat %{cross}-gprof.lang
) >files.cross
@@ -678,6 +686,9 @@ rm -rf %{buildroot}
%do_files xtensa-linux-gnu %{build_xtensa}
%changelog
+* Sat Jun 21 2014 Roland McGrath <roland@hack.frob.com> - 2.24-5
+- Build ld.gold for targets it supports.
+
* Mon Jun 16 2014 David Howells <dhowells@redhat.com> - 2.24-4
- Fix gcc-4.9 new compile error in m68k handler in gas.