[PATCH cproc 1/1] Enable builds on Redhat linux
Export this patch
From: Benson Muite <benson_muite@emailplus.org>
---
configure | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/configure b/configure
index dab1bf3..e560a05 100755
--- a/configure
+++ b/configure
@@ -77,6 +77,22 @@ case "$target" in
fi
linkflags='"-L", "'$gcclibdir'",'
;;
+ *64-redhat-linux)
+ test "${DEFAULT_DYNAMIC_LINKER+set}" || case "$target" in
+ x86_64*) DEFAULT_DYNAMIC_LINKER=/lib64/ld-linux-x86-64.so.2 ;;
+ aarch64*) DEFAULT_DYNAMIC_LINKER=/lib64/ld-linux-aarch64.so.1 ;;
+ riscv64*) DEFAULT_DYNAMIC_LINKER=/lib64/ld-linux-riscv64-lp64d.so.1 ;;
+ *) fail "unsuported target '$target'"
+ esac
+ startfiles='"-l", ":crt1.o", "-l", ":crti.o", "-l", ":crtbegin.o"'
+ endfiles='"-l", "c", "-l", ":crtend.o", "-l", ":crtn.o"'
+ if [ -z "$gcclibdir" ] ; then
+ test "$host" = "$target" || fail "gcc libdir must be specified when building a cross-compiler"
+ crtbegin=$($CC -print-file-name=crtbegin.o 2>/dev/null)
+ gcclibdir=${crtbegin%/*}
+ fi
+ linkflags='"-L", "'$gcclibdir'",'
+ ;;
*-*freebsd*)
: ${DEFAULT_DYNAMIC_LINKER:=/libexec/ld-elf.so.1}
startfiles='"-l", ":crt1.o", "-l", ":crti.o"'
--
2.45.2
cproc/patches: SUCCESS in 30s
[Enable build on RHEL][0] from [~bvkcm][1]
[0]: https://lists.sr.ht/~mcf/cproc/patches/56032
[1]: mailto:benson_muite@emailplus.org
✓ #1372630 SUCCESS cproc/patches/debian.yml https://builds.sr.ht/~mcf/job/1372630
✓ #1372632 SUCCESS cproc/patches/debian-riscv64.yml https://builds.sr.ht/~mcf/job/1372632
✓ #1372631 SUCCESS cproc/patches/debian-aarch64.yml https://builds.sr.ht/~mcf/job/1372631
✓ #1372633 SUCCESS cproc/patches/alpine-aarch64.yml https://builds.sr.ht/~mcf/job/1372633