From 74fac3dd7825307f11ec3ab5a99c8790b4270ca3 Mon Sep 17 00:00:00 2001 From: Denis Khalikov Date: Fri, 25 Aug 2017 16:11:14 +0300 Subject: [PATCH] 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 --- packaging/linux-exynos-tm2.spec | 2 ++ packaging/odroid-linux-kernel.spec | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.34.1