~mcf/cproc#86: 
Patch to build on Fedora

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 ;;

Status
REPORTED
Submitter
Karl Robillard
Assigned to
No-one
Submitted
1 year, 1 month ago
Updated
11 months ago
Labels
No labels applied.

~mcf 11 months ago

I think you just want to configure with ./configure --host=x86_64-linux-gnu. It seems that gcc -dumpmachine isn't good enough to be used by itself. autotools has a script config.sub which canonicalizes x86_64-redhat-linux to x86_64-redhat-linux-gnu. Maybe we should be doing something similar?

Register here or Log in to comment, or comment via email.