Enabling libcc1 build
authorSlava Barinov <v.barinov@samsung.com>
Thu, 2 Mar 2017 08:47:59 +0000 (11:47 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Thu, 2 Mar 2017 10:15:16 +0000 (13:15 +0300)
Change-Id: I4485bdf215e020450a65970474b591e98a7367f1

packaging/gcc-aarch64.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec

index b17605d..4e580e9 100644 (file)
@@ -164,6 +164,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+
@@ -841,6 +850,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 \
@@ -913,7 +923,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
@@ -933,7 +943,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}/
@@ -1049,6 +1059,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
index f345695..ff56e95 100644 (file)
@@ -164,6 +164,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+
@@ -841,6 +850,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 \
@@ -913,7 +923,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
@@ -933,7 +943,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}/
@@ -1049,6 +1059,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
index af16078..27eebd2 100644 (file)
@@ -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