[PATCH powerpc64le] Use the target 'objcopy' when cross-compiling.

Florian Weimer fweimer@redhat.com
Wed Jul 7 16:06:06 GMT 2021


* Ludovic Courtès via Libc-alpha:

> When cross-compiling to powerpc64le-linux-gnu,
> sysdeps/powerpc/powerpc64/le/Makefile would use "objcopy", leading to
> errors like:
>
>   objcopy: Unable to recognise the format of the input file `…/no_ldbl_gnu_attribute.o'
>
> This patch changes 'configure.ac' to use AC_CHECK_TOOL rather than
> '$CC -print-prog-name=objcopy' to determine the value of the OBJCOPY
> variable.  That way, OBJCOPY is set to TRIPLET-objcopy when
> cross-compiling for TRIPLET.

Hmm.  Why doesn't '$CC -print-prog-name=objcopy' result in the right
command name?

Thanks,
Florian



More information about the Libc-alpha mailing list