From 6b97fb4a8c38c159ab00f0f75e964ed8dc810930 Mon Sep 17 00:00:00 2001 From: Bogon Kim Date: Thu, 4 Apr 2013 16:20:13 +0900 Subject: [PATCH] patch 13990,14189 from bintuils svn which fix the arm-elf32 related link error with -gc-section options on arm. already adopted on private branch Change-Id: Iacef27dddb078ac3e1a9a3a2eb130f2047e33bec --- packaging/binutils.spec | 12 ++++++++++++ packaging/cross-armv5tel-binutils-accel.spec | 12 ++++++++++++ packaging/cross-armv5tel-binutils.spec | 12 ++++++++++++ packaging/cross-armv6l-binutils-accel.spec | 12 ++++++++++++ packaging/cross-armv6l-binutils.spec | 12 ++++++++++++ packaging/cross-armv7hl-binutils-accel.spec | 12 ++++++++++++ packaging/cross-armv7hl-binutils.spec | 12 ++++++++++++ packaging/cross-armv7l-binutils-accel.spec | 12 ++++++++++++ packaging/cross-armv7l-binutils.spec | 12 ++++++++++++ packaging/cross-armv7nhl-binutils-accel.spec | 12 ++++++++++++ packaging/cross-armv7nhl-binutils.spec | 12 ++++++++++++ packaging/cross-mipsel-binutils-accel.spec | 12 ++++++++++++ packaging/cross-mipsel-binutils.spec | 12 ++++++++++++ 13 files changed, 156 insertions(+) diff --git a/packaging/binutils.spec b/packaging/binutils.spec index bc14b70..b2bcf80 100755 --- a/packaging/binutils.spec +++ b/packaging/binutils.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: binutils @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv5tel-binutils-accel.spec b/packaging/cross-armv5tel-binutils-accel.spec index 396d1b7..6f44286 100755 --- a/packaging/cross-armv5tel-binutils-accel.spec +++ b/packaging/cross-armv5tel-binutils-accel.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv5tel-binutils-accel @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv5tel-binutils.spec b/packaging/cross-armv5tel-binutils.spec index 54726af..36d386c 100755 --- a/packaging/cross-armv5tel-binutils.spec +++ b/packaging/cross-armv5tel-binutils.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv5tel-binutils @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv6l-binutils-accel.spec b/packaging/cross-armv6l-binutils-accel.spec index c4c2a47..f361841 100755 --- a/packaging/cross-armv6l-binutils-accel.spec +++ b/packaging/cross-armv6l-binutils-accel.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv6l-binutils-accel @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv6l-binutils.spec b/packaging/cross-armv6l-binutils.spec index f6e4899..e99e99e 100755 --- a/packaging/cross-armv6l-binutils.spec +++ b/packaging/cross-armv6l-binutils.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv6l-binutils @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv7hl-binutils-accel.spec b/packaging/cross-armv7hl-binutils-accel.spec index 86fce57..1ec1816 100755 --- a/packaging/cross-armv7hl-binutils-accel.spec +++ b/packaging/cross-armv7hl-binutils-accel.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv7hl-binutils-accel @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv7hl-binutils.spec b/packaging/cross-armv7hl-binutils.spec index 4ec6e0c..a81e419 100755 --- a/packaging/cross-armv7hl-binutils.spec +++ b/packaging/cross-armv7hl-binutils.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv7hl-binutils @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv7l-binutils-accel.spec b/packaging/cross-armv7l-binutils-accel.spec index 88cf953..186b26a 100755 --- a/packaging/cross-armv7l-binutils-accel.spec +++ b/packaging/cross-armv7l-binutils-accel.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv7l-binutils-accel @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv7l-binutils.spec b/packaging/cross-armv7l-binutils.spec index ce10dbe..f0750bc 100755 --- a/packaging/cross-armv7l-binutils.spec +++ b/packaging/cross-armv7l-binutils.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv7l-binutils @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv7nhl-binutils-accel.spec b/packaging/cross-armv7nhl-binutils-accel.spec index 756cac0..32dd3ba 100755 --- a/packaging/cross-armv7nhl-binutils-accel.spec +++ b/packaging/cross-armv7nhl-binutils-accel.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv7nhl-binutils-accel @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-armv7nhl-binutils.spec b/packaging/cross-armv7nhl-binutils.spec index bbdf356..19c916f 100755 --- a/packaging/cross-armv7nhl-binutils.spec +++ b/packaging/cross-armv7nhl-binutils.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-armv7nhl-binutils @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-mipsel-binutils-accel.spec b/packaging/cross-mipsel-binutils-accel.spec index 4b74b7e5..58860c3 100755 --- a/packaging/cross-mipsel-binutils-accel.spec +++ b/packaging/cross-mipsel-binutils-accel.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-mipsel-binutils-accel @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* diff --git a/packaging/cross-mipsel-binutils.spec b/packaging/cross-mipsel-binutils.spec index cc2e4c3..72b2bae 100755 --- a/packaging/cross-mipsel-binutils.spec +++ b/packaging/cross-mipsel-binutils.spec @@ -3,6 +3,7 @@ %define enable_shared 1 %define run_testsuite 0 %define accelerator_crossbuild 0 +%define disable_nls 1 Summary: A GNU collection of binary utilities Name: cross-mipsel-binutils @@ -29,6 +30,7 @@ Patch12: fixbug13534_2.patch Patch13: fixbug13534_3.patch Patch14: fixbug13534_4.patch Patch15: fixbug13534_5.patch +Patch16: pr_13990_14189.patch %if "%{name}" != "binutils" %if "%{name}" != "cross-mipsel-binutils" @@ -114,6 +116,7 @@ to consider using libelf instead of BFD. %patch13 -p1 -b .fixbug13534_3 %patch14 -p1 -b .fixbug13534_4 %patch15 -p1 -b .fixbug13534_5 +%patch16 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -179,6 +182,9 @@ export CFLAGS="$CFLAGS -Wl,-rpath,/emul/ia32-linux/usr/lib:/emul/ia32-linux/lib: $CARGS \ --disable-werror \ --enable-lto \ +%if %{disable_nls} + --disable-nls \ +%endif --with-bugurl=http://bugzilla.tizen.com make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -293,6 +299,7 @@ rm -rf %{buildroot}%{_prefix}/%{_lib}/libiberty.a rm -f %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_prefix}/%{binutils_target} +%if !%{disable_nls} %find_lang %{?cross}binutils %find_lang %{?cross}opcodes %find_lang %{?cross}bfd @@ -304,6 +311,7 @@ cat %{?cross}bfd.lang >> %{?cross}binutils.lang cat %{?cross}gas.lang >> %{?cross}binutils.lang cat %{?cross}ld.lang >> %{?cross}binutils.lang cat %{?cross}gprof.lang >> %{?cross}binutils.lang +%endif %clean rm -rf %{buildroot} @@ -341,7 +349,11 @@ if [ $1 = 0 ] ;then fi %endif # %{isnative} +%if %{disable_nls} +%files +%else %files -f %{?cross}binutils.lang +%endif %defattr(-,root,root,-) %doc README %{_prefix}/bin/* -- 2.7.4