From 7a256a3a393acebceb12b6e64f5d98189ba4b009 Mon Sep 17 00:00:00 2001 From: Mikhail Kashkarov Date: Thu, 19 Dec 2019 12:57:54 +0300 Subject: [Tizen 6.0] Enable build with glibc 2.30 Tune up glibc test feature macros: In file included from /usr/include/gelf.h:53, from ../../backend.h:27, from hooks.c:31: /usr/include/libelf.h:98:3: error: unknown type name 'loff_t' 98 | loff_t d_off; /* Offset into section. */ | ^~~~~~ loff_t is in : #ifdef __USE_MISC # ifndef __u_char_defined typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; # define __u_char_defined # endif typedef __loff_t loff_t; #endif Signed-off-by: Mikhail Kashkarov --- packaging/ltrace.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/ltrace.spec b/packaging/ltrace.spec index c4373e1..1b30965 100644 --- a/packaging/ltrace.spec +++ b/packaging/ltrace.spec @@ -30,7 +30,7 @@ child processes may fail or some things may not work as expected. cp %{SOURCE1001} . %build -export CFLAGS="%{optflags} -Wall -Wno-unused-local-typedefs" +export CFLAGS="%{optflags} -Wall -Wno-unused-local-typedefs -Wp,-D_GNU_SOURCE" ./autogen.sh %configure --build=%{_target_cpu}-tizen-linux make -- cgit v1.2.3