packaging: Disable UBSan build
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Fri, 25 Aug 2017 13:11:14 +0000 (16:11 +0300)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Tue, 11 Jun 2019 00:35:49 +0000 (09:35 +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: Ife910a1e666c6fcafb7ef7bfcc072d88d8549d77
Signed-off-by: Denis Khalikov <d.khalikov@partner.samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
packaging/linux-rpi3.spec

index adb9979..0019e91 100644 (file)
@@ -58,6 +58,7 @@ This package provides kernel map and etc information.
 
 %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