kumquat-buildroot/package/tcf-agent/0001-fix-uClibc-ng-compile.patch
Waldemar Brodkorb 2e90483e44 package/tcf-agent: fix uClibc-ng compile on ARM
When a shared build is used, we can use getauxval and no ARM only
instuctions are in use.

When a static build is used, we need to override CFLAGS to use
arm instructions, as uClibc-ng only supports getauxval for shared case.

Fixes:
 - http://autobuild.buildroot.net/results/3b5/3b5c5519a3e5ee490308bc1a1b9579ce13417235

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit 408352207c18084c331b23aa739cde98cd52d000)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-08-07 10:52:14 +02:00

28 lines
964 B
Diff

From a78007cd139e1dea3d893f5fe1d1c3a47503e6a2 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Sat, 12 Aug 2023 18:27:02 +0200
Subject: [PATCH] fix uClibc-ng compile
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Upstream: N/A only mail available
---
agent/machine/arm/tcf/cpudefs-mdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agent/machine/arm/tcf/cpudefs-mdep.c b/agent/machine/arm/tcf/cpudefs-mdep.c
index 051631a0..7c4fbf3e 100644
--- a/agent/machine/arm/tcf/cpudefs-mdep.c
+++ b/agent/machine/arm/tcf/cpudefs-mdep.c
@@ -21,7 +21,7 @@
#ifndef USE_getauxval
# include <features.h>
-# define USE_getauxval (defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16)))
+# define USE_getauxval (defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16)) || (defined(__UCLIBC__) && defined(__HAVE_SHARED__)))
#endif
#include <stddef.h>
--
2.39.2