From: Denis Khalikov Date: Fri, 25 Aug 2017 13:11:14 +0000 (+0300) Subject: packaging: Disable UBSan build X-Git-Tag: submit/tizen/20170828.023313^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74fac3dd7825307f11ec3ab5a99c8790b4270ca3;p=platform%2Fkernel%2Flinux-exynos.git packaging: Disable UBSan build UBSan build on kernel will cause build error because kernel has its own sanitizer build options. So, dislable UBSan build from packaging spec. Change-Id: Ie06197677c9949eb8ed9537af6fc366d20d3a000 Signed-off-by: Denis Khalikov --- diff --git a/packaging/linux-exynos-tm2.spec b/packaging/linux-exynos-tm2.spec index 2f14674ae7c8..4934ee41551b 100644 --- a/packaging/linux-exynos-tm2.spec +++ b/packaging/linux-exynos-tm2.spec @@ -82,6 +82,8 @@ headers are used by the installed headers for GNU glibc and other system %build %{?asan:/usr/bin/gcc-unforce-options} +%{?ubsan:/usr/bin/gcc-unforce-options} + # Make sure EXTRAVERSION says what we want it to say sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{variant}/" Makefile diff --git a/packaging/odroid-linux-kernel.spec b/packaging/odroid-linux-kernel.spec index b6bc5eae35ab..5b459e4d871d 100644 --- a/packaging/odroid-linux-kernel.spec +++ b/packaging/odroid-linux-kernel.spec @@ -61,6 +61,8 @@ This package provides kernel map and etc information for odroid kernel. %build %{?asan:/usr/bin/gcc-unforce-options} +%{?ubsan:/usr/bin/gcc-unforce-options} + # Make sure EXTRAVERSION says what we want it to say sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}-%{variant}/" Makefile