make: Make 4.4.1 build with GCC 2.

This commit is contained in:
Augustin Cavalier
2025-02-24 23:02:31 -05:00
parent c301655129
commit f83e4ba79c
2 changed files with 31 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ BUILD()
runConfigure ./configure \
--disable-rpath --with-gnu-ld --disable-dependency-tracking
./build.sh
./make
}
INSTALL()

View File

@@ -1,4 +1,4 @@
From f31b86938397bd423a781ce0f989749827256962 Mon Sep 17 00:00:00 2001
From 658ed6893399b547592d3d1337cb2f64ff551b3d Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 26 Feb 2016 14:51:15 +0000
Subject: Haiku patch
@@ -21,7 +21,7 @@ index edd4070..ee88d6b 100644
2.45.2
From ebc3c52617c0f666f3a59fdd0160786f9cc05e94 Mon Sep 17 00:00:00 2001
From e696c3b02830364bbb498fe9595bf82b42d8cae9 Mon Sep 17 00:00:00 2001
From: David Karoly <david.karoly@outlook.com>
Date: Sun, 21 Nov 2021 15:47:19 +0000
Subject: fix build
@@ -43,3 +43,31 @@ index 3e94b98..622a9a0 100644
--
2.45.2
From 7d56b49fa87e2336feb225575dae63b54d34b045 Mon Sep 17 00:00:00 2001
From: Augustin Cavalier <waddlesplash@gmail.com>
Date: Mon, 24 Feb 2025 23:01:53 -0500
Subject: Build fix for GCC2.
diff --git a/lib/findprog-in.c b/lib/findprog-in.c
index c0768c2..346a6ee 100644
--- a/lib/findprog-in.c
+++ b/lib/findprog-in.c
@@ -223,6 +223,7 @@ find_in_given_path (const char *progname, const char *path,
if (path_copy == NULL)
return NULL; /* errno is set here */
+ {
int failure_errno;
char *path_rest;
char *cp;
@@ -395,4 +396,5 @@ find_in_given_path (const char *progname, const char *path,
errno = failure_errno;
return NULL;
}
+ }
}
--
2.45.2