CC_FOR_TARGET in libctf Makefile

Alan Modra amodra@gmail.com
Fri Feb 19 05:45:27 GMT 2021


Nick,
What is CC_FOR_TARGET doing in the libctf Makefile?  That seems wrong
to me.  You aren't building or testing libctf for the target.  You are
building it for the host!  I see this in my build dir libctf Makefile
on x86_64:

CC_FOR_TARGET = ` \
...
    if [ "x86_64-pc-linux-gnu" = "@target@" ] ; then \

So no substitution of @target@ due to lack of AC_CANONICAL_TARGET in
the libctf configure.ac.  That's not to say I think you should add
AC_CANONICAL_TARGET, I think CC_FOR_TARGET should disappear.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list