forked from pool/binutils
This commit is contained in:
committed by
Git OBS Bridge
parent
f91b107d9c
commit
5545d054d2
@@ -20,7 +20,7 @@
|
||||
Name: cross-ppc64-binutils
|
||||
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
|
||||
Version: 2.19
|
||||
Release: 7
|
||||
Release: 8
|
||||
#
|
||||
# RUN_TESTS
|
||||
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
|
||||
@@ -82,6 +82,9 @@ Patch12: s390-pic-dso.diff
|
||||
Patch13: common-sysroot-binutils.diff
|
||||
Patch14: assign-file-positions.diff
|
||||
Patch15: dw-cfa-advance-loc.diff
|
||||
Patch16: ppc-opc.diff
|
||||
Patch17: ld-ia64-relax.diff
|
||||
Patch18: s390-calls-local.diff
|
||||
Patch90: cross-avr-nesc-as.patch
|
||||
Patch92: cross-avr-omit_section_dynsym.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -185,6 +188,9 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch13
|
||||
%patch14
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17
|
||||
%patch18
|
||||
%if "%{TARGET}" == "avr"
|
||||
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
|
||||
%patch90
|
||||
@@ -232,21 +238,27 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
|
||||
%endif
|
||||
mkdir build-dir
|
||||
cd build-dir
|
||||
../configure CFLAGS="${RPM_OPT_FLAGS}" \
|
||||
--prefix=%{_prefix} \
|
||||
--with-bugurl=http://bugs.opensuse.org/ \
|
||||
--with-pkgversion="GNU Binutils; %{DIST}" \
|
||||
--enable-shared --with-gnu-ld --with-gnu-as --libdir=%{_libdir} \
|
||||
--infodir=%{_infodir} --mandir=%{_mandir} \
|
||||
--with-separate-debug-dir=%{_prefix}/lib/debug \
|
||||
--with-pic --build=%{HOST} \
|
||||
--disable-ld-targets \
|
||||
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \
|
||||
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" \\\
|
||||
--prefix=%{_prefix} \\\
|
||||
--with-bugurl=http://bugs.opensuse.org/ \\\
|
||||
--with-pkgversion="GNU Binutils; %{DIST}" \\\
|
||||
--with-gnu-ld --with-gnu-as --libdir=%{_libdir} \\\
|
||||
--infodir=%{_infodir} --mandir=%{_mandir} \\\
|
||||
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
|
||||
--with-pic --build=%{HOST} \\\
|
||||
--disable-ld-targets \\\
|
||||
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
|
||||
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
|
||||
../configure %common_flags --enable-shared
|
||||
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
|
||||
# force reconfiguring
|
||||
rm bfd/Makefile
|
||||
make %{?jobs:-j%jobs}
|
||||
cd ..
|
||||
mkdir build-dir2
|
||||
cd build-dir2
|
||||
../configure %common_flags --disable-shared
|
||||
make %{?jobs:-j%jobs} all-bfd all-opcodes
|
||||
|
||||
%check
|
||||
cd build-dir
|
||||
@@ -338,6 +350,9 @@ rm $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.{la,so}
|
||||
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
|
||||
cd ..
|
||||
cd build-dir2
|
||||
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
|
||||
cd ..
|
||||
%find_lang binutils
|
||||
%find_lang bfd binutils.lang
|
||||
%find_lang gas binutils.lang
|
||||
@@ -398,6 +413,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Dec 04 2008 schwab@suse.de
|
||||
- Update symbol visibility checks during linking on s390.
|
||||
* Wed Dec 03 2008 schwab@suse.de
|
||||
- Fix corner case during link relaxing.
|
||||
* Thu Nov 27 2008 schwab@suse.de
|
||||
- Fix disassembler bug.
|
||||
- Help some devel users.
|
||||
* Fri Nov 21 2008 schwab@suse.de
|
||||
- Import bugfixes from 2.19 branch.
|
||||
* Wed Nov 19 2008 schwab@suse.de
|
||||
|
Reference in New Issue
Block a user