Skip to content

Commit b4eba58

Browse files
committed
Fix build with gcc14
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 9521880 commit b4eba58

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ if [ ! -f ${TOOLCHAIN_BUILD_DIR}/${CT_NG_VERSION}/configure ]; then
6767
cp ${SOURCE_DIR}/patches/${CT_NG_VERSION}/glibc-2.27/*.patch ${TOOLCHAIN_BUILD_DIR}/${CT_NG_VERSION}/packages/glibc/2.27/
6868
cp ${SOURCE_DIR}/patches/${CT_NG_VERSION}/glibc-2.34/*.patch ${TOOLCHAIN_BUILD_DIR}/${CT_NG_VERSION}/packages/glibc/2.34/
6969
cp ${SOURCE_DIR}/patches/${CT_NG_VERSION}/glibc-2.35/*.patch ${TOOLCHAIN_BUILD_DIR}/${CT_NG_VERSION}/packages/glibc/2.35/
70+
cp ${SOURCE_DIR}/patches/${CT_NG_VERSION}/gmp-6.1.2/*.patch ${TOOLCHAIN_BUILD_DIR}/${CT_NG_VERSION}/packages/gmp/6.1.2/
7071

7172
if [ "${TOOLCHAIN_PLATFORM}" == "moddwarf-new" ]; then
7273
cp ${SOURCE_DIR}/patches/${CT_NG_VERSION}/glibc-2.27-dwarf/*.patch ${TOOLCHAIN_BUILD_DIR}/${CT_NG_VERSION}/packages/glibc/2.27/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/configure b/configure
2+
index 12ddffd..63a12ad 100755
3+
--- a/configure
4+
+++ b/configure
5+
@@ -6458,7 +6458,7 @@ if test "$gmp_prog_cc_works" = yes; then
6+
7+
#if defined (__GNUC__) && ! defined (__cplusplus)
8+
typedef unsigned long long t1;typedef t1*t2;
9+
-void g(){}
10+
+void g(int, const t1*, t1, t1*, const t1*, int){}
11+
void h(){}
12+
static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
13+
{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
14+
@@ -8076,7 +8076,7 @@ if test "$gmp_prog_cc_works" = yes; then
15+
16+
#if defined (__GNUC__) && ! defined (__cplusplus)
17+
typedef unsigned long long t1;typedef t1*t2;
18+
-void g(){}
19+
+void g(int, const t1*, t1, t1*, const t1*, int){}
20+
void h(){}
21+
static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
22+
{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}

0 commit comments

Comments
 (0)