!245 在spec文件中为ppc64le架构生成libbfd.so和libopcodes.so
From: @frey1186 Reviewed-by: @eastb233 Signed-off-by: @eastb233
This commit is contained in:
commit
a94fc0a34c
@ -2,7 +2,7 @@
|
|||||||
Summary: A GNU collection of binary utilities
|
Summary: A GNU collection of binary utilities
|
||||||
Name: binutils%{?_with_debug:-debug}
|
Name: binutils%{?_with_debug:-debug}
|
||||||
Version: 2.40
|
Version: 2.40
|
||||||
Release: 3
|
Release: 4
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
URL: https://sourceware.org/binutils
|
URL: https://sourceware.org/binutils
|
||||||
|
|
||||||
@ -1025,6 +1025,24 @@ install_binutils()
|
|||||||
|
|
||||||
# Generate libbfd.so and libopcodes.so
|
# Generate libbfd.so and libopcodes.so
|
||||||
|
|
||||||
|
%ifarch %{power64}
|
||||||
|
tee %{buildroot}%{_libdir}/libbfd.so <<EOF
|
||||||
|
/* GNU ld script */
|
||||||
|
|
||||||
|
OUTPUT_FORMAT(elf64-powerpcle)
|
||||||
|
|
||||||
|
INPUT ( %{_libdir}/libbfd.a -liberty -lz -ldl )
|
||||||
|
EOF
|
||||||
|
|
||||||
|
tee %{buildroot}%{_libdir}/libopcodes.so <<EOF
|
||||||
|
/* GNU ld script */
|
||||||
|
|
||||||
|
OUTPUT_FORMAT(elf64-powerpcle)
|
||||||
|
|
||||||
|
INPUT ( %{_libdir}/libopcodes.a -lbfd )
|
||||||
|
EOF
|
||||||
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
tee %{buildroot}%{_libdir}/libbfd.so <<EOF
|
tee %{buildroot}%{_libdir}/libbfd.so <<EOF
|
||||||
/* GNU ld script */
|
/* GNU ld script */
|
||||||
@ -1315,6 +1333,9 @@ exit 0
|
|||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 10 2023 frey <yangfeilong_2009@126.com> - 2.40-4
|
||||||
|
- Generate libbfd.so and libopcodes.so for powerpc
|
||||||
|
|
||||||
* Tue Aug 29 2023 eastb233 <xiezhiheng@huawei.com> - 2.40-3
|
* Tue Aug 29 2023 eastb233 <xiezhiheng@huawei.com> - 2.40-3
|
||||||
- Rename ctf-spec.info in binutils package because gdb-help package also provides it
|
- Rename ctf-spec.info in binutils package because gdb-help package also provides it
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user