Can not find true complier when Cross-Complie GHC
I am trying to complie a cross complie ghc on ubuntu for another platform. But when I run the ./configure
, GHC can only find my local gcc\binutils.
./configure
shown me like this:
However, my real version of gcc is this:
I believe that I use a correct configure
:
./configure --target=${CROSS_TARGET} CC=${CROSS_TARGET}-gcc LD=${CROSS_TARGET}-ld NM=${CROSS_TARGET}-nm --with-objdump=${CROSS_TARGET}-objdump
So how it happened? And how to solve it?