Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add libstdc++ subpackage to libgcc #253

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions packages/libgcc/libgcc.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is a wrapper package that vends a pre-built shared library from
# the SDK, allowing it to be loaded at runtime. It also lets us extract
# This is a wrapper package that vends pre-built shared libraries from
# the SDK, allowing them to be loaded at runtime. It also lets us extract
# debuginfo in the usual way.
%undefine _debugsource_packages

Expand All @@ -14,20 +14,37 @@ URL: https://gcc.gnu.org/
%description
%{summary}.

%package -n %{_cross_os}libstdc++
Summary: GCC C++ standard library
License: GPL-3.0-or-later WITH GCC-exception-3.1
Requires: %{_cross_os}libgcc

%description -n %{_cross_os}libstdc++
%{summary}.

%prep
%setup -T -c
cp %{_cross_licensedir}/gcc/COPYING{3,.RUNTIME} .

%build
install -p -m0755 %{_cross_libdir}/libgcc_s.so.1 .
install -p -m0755 %{_cross_libdir}/libstdc++.so.6.* .

%install
mkdir -p %{buildroot}%{_cross_libdir}
install -p -m0755 libgcc_s.so.1 %{buildroot}%{_cross_libdir}
install -p -m0755 libstdc++.so.6.* %{buildroot}%{_cross_libdir}
for lib in $(find %{buildroot}%{_cross_libdir} -name 'libstdc++.so.6.*') ; do
ln -s "${lib##*/}" %{buildroot}%{_cross_libdir}/libstdc++.so.6
done

%files
%license COPYING3 COPYING.RUNTIME
%{_cross_attribution_file}
%{_cross_libdir}/libgcc_s.so.1

%files -n %{_cross_os}libstdc++
%{_cross_libdir}/libstdc++.so.6
%{_cross_libdir}/libstdc++.so.6.*

%changelog