summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2017-03-02 11:47:59 +0300
committerSlava Barinov <v.barinov@samsung.com>2017-03-02 13:15:16 +0300
commita98dd1e12718471a29e3f8e407b41b2c8ca36b84 (patch)
treed4a93ebacb16c1cd5b6422f02ce3bd3c17004c12
parent6030c5924d94009cdb6afc3edde948ae1f1bb119 (diff)
downloadlinaro-gcc-a98dd1e12718471a29e3f8e407b41b2c8ca36b84.tar.gz
linaro-gcc-a98dd1e12718471a29e3f8e407b41b2c8ca36b84.tar.bz2
linaro-gcc-a98dd1e12718471a29e3f8e407b41b2c8ca36b84.zip
Enabling libcc1 build
Change-Id: I4485bdf215e020450a65970474b591e98a7367f1
-rw-r--r--packaging/gcc-aarch64.spec19
-rw-r--r--packaging/gcc-armv7l.spec19
-rw-r--r--packaging/linaro-gcc.spec19
3 files changed, 51 insertions, 6 deletions
diff --git a/packaging/gcc-aarch64.spec b/packaging/gcc-aarch64.spec
index b17605d755f..4e580e9ea26 100644
--- a/packaging/gcc-aarch64.spec
+++ b/packaging/gcc-aarch64.spec
@@ -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
diff --git a/packaging/gcc-armv7l.spec b/packaging/gcc-armv7l.spec
index f3456951363..ff56e959b3c 100644
--- a/packaging/gcc-armv7l.spec
+++ b/packaging/gcc-armv7l.spec
@@ -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
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