packaging: Disable UBSan build 71/146271/3 accepted/tizen/unified/20170828.164523 submit/tizen/20170828.023313
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Fri, 25 Aug 2017 13:11:14 +0000 (16:11 +0300)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 28 Aug 2017 01:08:57 +0000 (10:08 +0900)
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 <d.khalikov@partner.samsung.com>
packaging/linux-exynos-tm2.spec
packaging/odroid-linux-kernel.spec

index 2f14674..4934ee4 100644 (file)
@@ -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
 
index b6bc5ea..5b459e4 100644 (file)
@@ -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