Fix ASAN build error with GBS 0.25.30 04/301004/1 accepted/tizen/7.0/unified/20231109.024724
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 7 Nov 2023 03:43:15 +0000 (12:43 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 7 Nov 2023 03:43:15 +0000 (12:43 +0900)
[Version] 1.10.0-1
[Issue Type] ASAN build

Change-Id: I73f5cf5d517df9881a4db6db2892298d88a4f30c
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libvpx.spec

index ecc6771..5a67a2a 100644 (file)
@@ -1,6 +1,6 @@
 Name:           libvpx
 Version:        1.10.0
-Release:        0
+Release:        1
 License:        BSD-3-Clause
 Summary:        VP8 codec library
 Url:            http://www.webmproject.org/
@@ -51,6 +51,9 @@ cp %{SOURCE1001} .
 %build
 cd build
 export CFLAGS="%{optflags}"
+%if "%{asan}" == "1"
+export LDFLAGS+=" -lasan"
+%endif
 # It is only an emulation of autotools configure; the macro does not work
 
 # libvpx default enable NEON support on ARMv7, unfortunately some ARMv7