diff options
Diffstat (limited to 'packaging/linaro-gcc.spec')
-rw-r--r-- | packaging/linaro-gcc.spec | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/packaging/linaro-gcc.spec b/packaging/linaro-gcc.spec index af1607804d0..27eebd22f7e 100644 --- a/packaging/linaro-gcc.spec +++ b/packaging/linaro-gcc.spec @@ -161,6 +161,15 @@ The library for the GNU Objective C compiler. %post -n libobjc -p /sbin/ldconfig %postun -n libobjc -p /sbin/ldconfig +%package -n libcc1 +Summary: GNU C Compiler plugin for GDB +License: GPL-3.0-with-GCC-exception +Group: Development/Building +%description -n libcc1 +The GCC plugin for GDB +%post -n libcc1 -p /sbin/ldconfig +%postun -n libcc1 -p /sbin/ldconfig + %package obj-c++ Summary: GNU Objective C++ Compiler License: GPL-3.0+ @@ -838,6 +847,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \ --disable-libquadmath \ --enable-lto \ %{!?cross: \ + --enable-libcc1 \ %ifarch armv7l --with-arch=armv7-a \ --with-tune=cortex-a8 \ @@ -910,7 +920,7 @@ rm -rf %{buildroot}/%{_datadir}/locale #remove everything we don't need rm -rf %{buildroot}/%{libsubdir}/install-tools -find %{buildroot}/%{libsubdir} -name "*.la" -exec rm -rf {} + +find %{buildroot}/ -name "*.la" -delete %{!?cross: ln -s gcc %{buildroot}%{_bindir}/cc @@ -930,7 +940,7 @@ mv %{buildroot}%{_prefix}/lib/libgcc_s.so* %{buildroot}%{libsubdir}/32/ %endif # move libraries to libdir -for lib in asan atomic cilkrts gfortran gomp itm lsan quadmath stdc++ supc++ tsan ubsan +for lib in asan atomic cilkrts gfortran gomp cc1 itm lsan quadmath stdc++ supc++ tsan ubsan do [ -e %{buildroot}%{libsubdir}/lib$lib.a ] && mv %{buildroot}%{libsubdir}/lib$lib.a %{buildroot}%{libdir}/ [ -e %{buildroot}%{libsubdir}/lib$lib.so ] && mv %{buildroot}%{libsubdir}/lib$lib.so* %{buildroot}%{libdir}/ @@ -1046,6 +1056,11 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %defattr(-,root,root) %{libdir}/libgomp.so.* +%files -n libcc1 +%manifest gcc.manifest +%defattr(-,root,root) +%{libdir}/libcc1.so.* + %ifarch %asan_arch %files -n libasan %manifest gcc.manifest |