1
- # This is a wrapper package that vends a pre-built shared library from
2
- # the SDK, allowing it to be loaded at runtime. It also lets us extract
1
+ # This is a wrapper package that vends pre-built shared libraries from
2
+ # the SDK, allowing them to be loaded at runtime. It also lets us extract
3
3
# debuginfo in the usual way.
4
4
%undefine _debugsource_packages
5
5
@@ -14,20 +14,37 @@ URL: https://gcc.gnu.org/
14
14
%description
15
15
%{summary }.
16
16
17
+ %package -n %{_cross_os }libstdc++
18
+ Summary: GCC C++ standard library
19
+ License: GPL-3.0 -or-later WITH GCC-exception-3.1
20
+ Requires: %{_cross_os }libgcc
21
+
22
+ %description -n %{_cross_os }libstdc++
23
+ %{summary }.
24
+
17
25
%prep
18
26
%setup -T -c
19
27
cp %{_cross_licensedir }/gcc/COPYING{3,.RUNTIME} .
20
28
21
29
%build
22
30
install -p -m0755 %{_cross_libdir }/libgcc_s.so.1 .
31
+ install -p -m0755 %{_cross_libdir }/libstdc++.so.6.* .
23
32
24
33
%install
25
34
mkdir -p %{buildroot }%{_cross_libdir }
26
35
install -p -m0755 libgcc_s.so.1 %{buildroot }%{_cross_libdir }
36
+ install -p -m0755 libstdc++.so.6.* %{buildroot }%{_cross_libdir }
37
+ for lib in $( find %{buildroot}%{_cross_libdir} -name ' libstdc++.so.6.*' ) ; do
38
+ ln -s " ${lib##*/ } " %{buildroot}%{_cross_libdir}/libstdc++.so.6
39
+ done
27
40
28
41
%files
29
42
%license COPYING3 COPYING.RUNTIME
30
43
%{_cross_attribution_file }
31
44
%{_cross_libdir }/libgcc_s.so.1
32
45
46
+ %files -n %{_cross_os }libstdc++
47
+ %{_cross_libdir }/libstdc++.so.6
48
+ %{_cross_libdir }/libstdc++.so.6.*
49
+
33
50
%changelog
0 commit comments