!245 在spec文件中为ppc64le架构生成libbfd.so和libopcodes.so

From: @frey1186 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
This commit is contained in:
openeuler-ci-bot 2023-10-13 01:39:11 +00:00 committed by Gitee
commit a94fc0a34c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities
Name: binutils%{?_with_debug:-debug}
Version: 2.40
Release: 3
Release: 4
License: GPL-3.0-or-later
URL: https://sourceware.org/binutils
@ -1025,6 +1025,24 @@ install_binutils()
# 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
tee %{buildroot}%{_libdir}/libbfd.so <<EOF
/* GNU ld script */
@ -1315,6 +1333,9 @@ exit 0
#----------------------------------------------------------------------------
%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
- Rename ctf-spec.info in binutils package because gdb-help package also provides it