packaging: Fix asan build on aarh64
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 28 Jul 2022 23:59:06 +0000 (08:59 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 3 May 2023 10:49:26 +0000 (19:49 +0900)
    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 <sw0312.kim@samsung.com>
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
Change-Id: I3d2f3ddaceca9bd55adec83b775760d1f42fdd09

packaging/glibc.spec

index 0c1579b..4389863 100644 (file)
@@ -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