Enable GCC plugin infrastructure 17/85517/2 accepted/tizen/base/20160902.074347 submit/tizen_base/20160831.021716
authorSlava Barinov <v.barinov@samsung.com>
Mon, 22 Aug 2016 07:56:07 +0000 (10:56 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 31 Aug 2016 02:00:30 +0000 (19:00 -0700)
The plugin infrastructure is required for Fault Sanitizer project.

Default compiler packages are not affected; package gcc-plugin-devel with
required headers is created, the package which want to build plugin must
require it for build.

Change-Id: I12d99e7c07c909f36ba7b2769113fefbdbd89bfa
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/gcc-aarch64.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec

index 089859a..9339e7f 100644 (file)
@@ -726,6 +726,15 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s
 %preun -n asan-runtime-env
 # Restore /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
+
+%package plugin-devel
+Summary:       GNU GCC Plugin development files
+License:       GPL-3.0+
+Group:         Development/Languages
+%description plugin-devel
+This package contains GCC Plugin development files needed for compiler
+plugins build.
+
 %prep
 
 %setup -q -n gcc-%{version}
@@ -774,7 +783,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
        --disable-libssp \
        --disable-bootstrap \
        --disable-libvtv \
-       --disable-plugin \
+       --enable-plugin \
        --disable-libgcj \
        --with-slibdir=%{libdir} \
        --with-system-zlib \
@@ -1040,6 +1049,9 @@ chmod 644 %{buildroot}/ASAN_OPTIONS
 %{libsubdir}/cc1
 /lib/cpp
 
+%files plugin-devel
+%defattr(-,root,root)
+%{libsubdir}/plugin/*
 
 %{?gcc_run_tests:
 %files testresults
index 58f7895..0e65da4 100644 (file)
@@ -726,6 +726,15 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s
 %preun -n asan-runtime-env
 # Restore /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
+
+%package plugin-devel
+Summary:       GNU GCC Plugin development files
+License:       GPL-3.0+
+Group:         Development/Languages
+%description plugin-devel
+This package contains GCC Plugin development files needed for compiler
+plugins build.
+
 %prep
 
 %setup -q -n gcc-%{version}
@@ -774,7 +783,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
        --disable-libssp \
        --disable-bootstrap \
        --disable-libvtv \
-       --disable-plugin \
+       --enable-plugin \
        --disable-libgcj \
        --with-slibdir=%{libdir} \
        --with-system-zlib \
@@ -1040,6 +1049,9 @@ chmod 644 %{buildroot}/ASAN_OPTIONS
 %{libsubdir}/cc1
 /lib/cpp
 
+%files plugin-devel
+%defattr(-,root,root)
+%{libsubdir}/plugin/*
 
 %{?gcc_run_tests:
 %files testresults
index 20b6785..8e7b95f 100644 (file)
@@ -723,6 +723,15 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s
 %preun -n asan-runtime-env
 # Restore /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
+
+%package plugin-devel
+Summary:       GNU GCC Plugin development files
+License:       GPL-3.0+
+Group:         Development/Languages
+%description plugin-devel
+This package contains GCC Plugin development files needed for compiler
+plugins build.
+
 %prep
 
 %setup -q -n gcc-%{version}
@@ -771,7 +780,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
        --disable-libssp \
        --disable-bootstrap \
        --disable-libvtv \
-       --disable-plugin \
+       --enable-plugin \
        --disable-libgcj \
        --with-slibdir=%{libdir} \
        --with-system-zlib \
@@ -1037,6 +1046,9 @@ chmod 644 %{buildroot}/ASAN_OPTIONS
 %{libsubdir}/cc1
 /lib/cpp
 
+%files plugin-devel
+%defattr(-,root,root)
+%{libsubdir}/plugin/*
 
 %{?gcc_run_tests:
 %files testresults