chrpath: fix build with gcc13. (#9721)

This commit is contained in:
OscarL
2023-11-01 15:51:49 -03:00
committed by GitHub
parent d5f16fd3ee
commit b2e3e0c0ee
2 changed files with 27 additions and 2 deletions

View File

@@ -31,12 +31,14 @@ BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
cmd:awk
cmd:autoconf
cmd:make
cmd:gcc$secondaryArchSuffix
"
BUILD()
{
autoconf
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
}

View File

@@ -1,4 +1,4 @@
From 5ce86fd44694055d87e2cc2a3e1500f293bfe3ed Mon Sep 17 00:00:00 2001
From 933058af2ad18c9bfc2b0b126c54789142c657af Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sat, 13 May 2023 16:47:24 -0300
Subject: Fix build on Haiku
@@ -35,5 +35,28 @@ index f24bc06..b16b1cc 100644
Elf32_Phdr e32;
Elf64_Phdr e64;
--
2.37.3
2.42.0
From cc8a8584df0ac12a661b0665b60d105ac8a18921 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Wed, 1 Nov 2023 15:38:44 -0300
Subject: Fix build with GCC13.
diff --git a/acinclude.m4 b/acinclude.m4
index 73a7097..debcbd8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -22,7 +22,7 @@ esac
AC_DEFUN([CHRPATH_LDRPATH_OPTION],
[AC_REQUIRE([AC_CANONICAL_TARGET])[]dnl
case "$target" in
- *-linux*|*-gnu*|*-k*bsd*-gnu)
+ *-linux*|*-gnu*|*-k*bsd*-gnu|*-haiku*)
LDRPATH=-Wl,-rpath,
;;
*-*-irix*|*-*-osf*)
--
2.42.0