~mcf/cproc

cproc: Enable build on RHEL v1 PROPOSED

Related work at  which includes additional changes:
https://github.com/michaelforney/cproc/pull/3
if taking from GitHub, no need to merge this patch.

Benson Muite (1):
  Enable builds on Redhat linux

 configure | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

-- 
2.45.2
#1372630 debian.yml success
#1372631 debian-aarch64.yml success
#1372632 debian-riscv64.yml success
#1372633 alpine-aarch64.yml success
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
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mcf/cproc/patches/56032/mbox | git am -3
Learn more about email & git

[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