From 53e9eab0cddfd619970abc375263505099b25edf Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 23 Apr 2025 08:43:27 +0300 Subject: [PATCH] ports/tcc: Fix building on 32 bit --- ports/tcc/patches/0004-fix-glibc-fix.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ports/tcc/patches/0004-fix-glibc-fix.patch diff --git a/ports/tcc/patches/0004-fix-glibc-fix.patch b/ports/tcc/patches/0004-fix-glibc-fix.patch new file mode 100644 index 00000000..5812dcc8 --- /dev/null +++ b/ports/tcc/patches/0004-fix-glibc-fix.patch @@ -0,0 +1,12 @@ +diff -ruN tcc-0.9.27/tccrun.c tcc-0.9.27-banan_os/tccrun.c +--- tcc-0.9.27/tccrun.c 2017-12-17 10:27:05.000000000 +0200 ++++ tcc-0.9.27-banan_os/tccrun.c 2025-04-15 23:42:45.677267898 +0300 +@@ -562,7 +562,7 @@ + #ifdef __i386__ + + /* fix for glibc 2.1 */ +-#ifndef REG_EIP ++#if defined(REG_EIP) && !defined(__banan_os__) + #define REG_EIP EIP + #define REG_EBP EBP + #endif