flex: use TARGET_CC not HOST_CC for target compile

This commit is contained in:
Rudi Heitbaum 2025-05-23 02:04:47 +00:00
parent 432d8fc00b
commit c534e36940
3 changed files with 30 additions and 0 deletions

View File

@ -18,6 +18,14 @@ PKG_CONFIGURE_OPTS_HOST="--enable-static --disable-shared --disable-rpath --with
PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_realloc_0_nonnull=yes \ PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_realloc_0_nonnull=yes \
ac_cv_func_malloc_0_nonnull=yes" ac_cv_func_malloc_0_nonnull=yes"
pre_configure_target() {
export CC_FOR_BUILD="${CC}";
export CFLAGS_FOR_BUILD="${CFLAGS}";
export CPP_FOR_BUILD="${CPP}";
export CPPFLAGS_FOR_BUILD="${CPPFLAGS}";
export LDFLAGS_FOR_BUILD="${LDFLAGS}";
}
post_makeinstall_host() { post_makeinstall_host() {
cat >${TOOLCHAIN}/bin/lex <<"EOF" cat >${TOOLCHAIN}/bin/lex <<"EOF"
#!/bin/sh #!/bin/sh

View File

@ -0,0 +1,22 @@
From 4b142954b54a57a9b0af0a9661056a9c39a8fa95 Mon Sep 17 00:00:00 2001
From: Richard Barnes <rbarnes@umn.edu>
Date: Wed, 2 Oct 2024 10:35:09 -0700
Subject: [PATCH] Match `malloc` signature to its use
---
lib/malloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/malloc.c b/lib/malloc.c
index 75e8ef97c..701b9b39d 100755
--- a/lib/malloc.c
+++ b/lib/malloc.c
@@ -3,7 +3,7 @@
#include <sys/types.h>
- void *malloc ();
+ void *malloc (size_t n);
/* Allocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */