SPECS: binutils.spec - gold bcond

adamg adamg at pld-linux.org
Wed Jun 18 22:26:17 CEST 2008


Author: adamg                        Date: Wed Jun 18 20:26:17 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- gold bcond

---- Files affected:
SPECS:
   binutils.spec (1.290 -> 1.291) 

---- Diffs:

================================================================
Index: SPECS/binutils.spec
diff -u SPECS/binutils.spec:1.290 SPECS/binutils.spec:1.291
--- SPECS/binutils.spec:1.290	Wed Jun 18 21:59:08 2008
+++ SPECS/binutils.spec	Wed Jun 18 22:26:12 2008
@@ -3,8 +3,13 @@
 # Conditional build:
 %bcond_with	allarchs	# enable all targets
 # define addtargets x,y,z	# build with additional targets x,y,z (e.g. x86_64-linux)
+%bcond_with	gold		# disable gold (gnu ld successor) on supported archs (x86/sparc)
 %bcond_without	pax		# without PaX flags (for upstream bugreports)
 #
+%ifnarch %ix86 %x8664 sparc
+%define		with_gold	0
+%endif
+#
 Summary:	GNU Binary Utility Development Utilities
 Summary(de.UTF-8):	GNU Binary Utility Development Utilities
 Summary(es.UTF-8):	Utilitarios para desarrollo de binarios de la GNU
@@ -200,7 +205,8 @@
 %else
 	%{?with_allarchs:--enable-64-bit-bfd} \
 %endif
-	%{?with_allarchs:--enable-targets=alpha-linux,arm-linux,cris-linux,hppa-linux,i386-linux,ia64-linux,x86_64-linux,m68k-linux,mips-linux,mips64-linux,mips64el-linux,mipsel-linux,ppc-linux,s390-linux,s390x-linux,sh-linux,sparc-linux,sparc64-linux,i386-linuxaout}
+	%{?with_allarchs:--enable-targets=alpha-linux,arm-linux,cris-linux,hppa-linux,i386-linux,ia64-linux,x86_64-linux,m68k-linux,mips-linux,mips64-linux,mips64el-linux,mipsel-linux,ppc-linux,s390-linux,s390x-linux,sh-linux,sparc-linux,sparc64-linux,i386-linuxaout} \
+	%{?with_gold:--enable-gold}
 
 %{__make} -j1 configure-bfd
 %{__make} -j1 headers -C bfd
@@ -238,7 +244,10 @@
 %find_lang binutils
 %find_lang gas
 %find_lang gprof
+touch ld.lang
+%if %{without gold}
 %find_lang ld
+%endif
 %find_lang opcodes
 cat bfd.lang opcodes.lang > %{name}-libs.lang
 cat gas.lang gprof.lang ld.lang >> %{name}.lang
@@ -266,12 +275,14 @@
 %doc README
 %attr(755,root,root) %{_bindir}/[!g]*
 %attr(755,root,root) %{_bindir}/g[!a]*
-%{_prefix}/lib/ldscripts
 %{_infodir}/as.info*
 %{_infodir}/binutils.info*
 %{_infodir}/configure.info*
 %{_infodir}/gprof.info*
+%if %{without gold}
 %{_infodir}/ld.info*
+%{_prefix}/lib/ldscripts
+%endif
 %{_mandir}/man1/*
 %lang(cs) %{_mandir}/cs/man1/*
 %lang(de) %{_mandir}/de/man1/*
@@ -313,6 +324,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.291  2008/06/18 20:26:12  adamg
+- gold bcond
+
 Revision 1.290  2008/06/18 19:59:08  arekm
 - rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/binutils.spec?r1=1.290&r2=1.291&f=u



More information about the pld-cvs-commit mailing list