Here's a patch to configure that allows cproc to be built on Fedora (and presumably CentOS & RHEL).
-Karl
diff --git a/configure b/configure index fe5688a..32dd650 100755 --- a/configure +++ b/configure @@ -61,7 +61,7 @@ case "$target" in startfiles='"-l", ":crt1.o", "-l", ":crti.o"' endfiles='"-l", "c", "-l", ":crtn.o"' ;; --linux-gnu) +-linux-gnu|-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=/lib/ld-linux-aarch64.so.1 ;;
I think you just want to configure with
./configure --host=x86_64-linux-gnu
. It seems thatgcc -dumpmachine
isn't good enough to be used by itself. autotools has a scriptconfig.sub
which canonicalizesx86_64-redhat-linux
tox86_64-redhat-linux-gnu
. Maybe we should be doing something similar?