mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
flex: use TARGET_CC not HOST_CC for target compile
This commit is contained in:
parent
432d8fc00b
commit
c534e36940
@ -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 \
|
||||
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() {
|
||||
cat >${TOOLCHAIN}/bin/lex <<"EOF"
|
||||
#!/bin/sh
|
||||
|
@ -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. */
|
Loading…
x
Reference in New Issue
Block a user