From 82d0c28ede89500babb1b922b21d41893ea90d7e Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Fri, 29 Jul 2022 08:59:06 +0900 Subject: [PATCH] packaging: Fix asan build on aarh64 When running 2nd glibc build for asan, there are errors from conflicting types for fgetpos and fsetpos. This is from not matched LARGEFILE related definitions. Undefine the related definitions like armv7l build. Signed-off-by: Seung-Woo Kim Signed-off-by: Dongkyun Son Change-Id: I3d2f3ddaceca9bd55adec83b775760d1f42fdd09 --- packaging/glibc.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/glibc.spec b/packaging/glibc.spec index 0c1579b..4389863 100644 --- a/packaging/glibc.spec +++ b/packaging/glibc.spec @@ -453,7 +453,7 @@ ASAN_BUILD=$HERE/asan-build unset CXXFLAGS unset CFLAGS unset LDFLAGS -%ifarch %arm +%ifarch %{arm} aarch64 # Glibc must have both functions' implementations CPPFLAGS="-U_LARGEFILE_SOURCE -U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS" %endif -- 2.7.4