11.3.1-4.1

Add linker scripts for libatomic and libitm.

Resolves: #2149650
This commit is contained in:
Marek Polacek 2022-12-15 22:26:19 -05:00
parent 38f08e5122
commit 5dacc60f6f

View File

@ -1573,7 +1573,23 @@ INPUT( =%{_prefix}/lib/gcc/$crossarch/%{gcc_major}/libstdc++.a )" > $CROSS_LIBPA
Use the static library from sysroot. */ Use the static library from sysroot. */
INPUT( =%{_prefix}/lib/gcc/$crossarch/%{gcc_major}/libsupc++.a )" > $CROSS_LIBPATH/libsupc++.a INPUT( =%{_prefix}/lib/gcc/$crossarch/%{gcc_major}/libsupc++.a )" > $CROSS_LIBPATH/libsupc++.a
# TODO add libitm.{so,a} and libatomic.{so,a} echo '/* GNU ld script
Use the shared library from sysroot. */
OUTPUT_FORMAT(elf64-littleaarch64)
INPUT ( =%{_prefix}/lib64/libatomic.so.1 )' > $CROSS_LIBPATH/libatomic.so
echo "/* GNU ld script
Use the static library from sysroot. */
INPUT( =%{_prefix}/lib/gcc/$crossarch/%{gcc_major}/libatomic.a )" > $CROSS_LIBPATH/libatomic.a
echo '/* GNU ld script
Use the shared library from sysroot. */
OUTPUT_FORMAT(elf64-littleaarch64)
INPUT ( =%{_prefix}/lib64/libitm.so.1 )' > $CROSS_LIBPATH/libitm.so
echo "/* GNU ld script
Use the static library from sysroot. */
INPUT( =%{_prefix}/lib/gcc/$crossarch/%{gcc_major}/libitm.a )" > $CROSS_LIBPATH/libitm.a
# Help plugins find out nvra. # Help plugins find out nvra.
echo gcc-%{version}-%{release}.%{_arch} > $CROSS_LIBPATH/rpmver echo gcc-%{version}-%{release}.%{_arch} > $CROSS_LIBPATH/rpmver
@ -3519,6 +3535,10 @@ end
%{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libgcc_s.so %{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libgcc_s.so
%{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libgomp.so %{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libgomp.so
%{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libgomp.spec %{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libgomp.spec
%{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libatomic.so
%{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libatomic.a
%{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libitm.so
%{_prefix}/lib/gcc/aarch64-redhat-linux/%{gcc_major}/libitm.a
%files -n cross-gcc-c++-aarch64 %files -n cross-gcc-c++-aarch64
%{_prefix}/bin/aarch64-redhat-linux-c++ %{_prefix}/bin/aarch64-redhat-linux-c++