Use non-canocalized triple as cross-compiler prefix
authorSergei Trofimovich <slyfox@gentoo.org>
Thu, 6 Apr 2017 07:51:22 +0000 (08:51 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Thu, 6 Apr 2017 08:30:03 +0000 (09:30 +0100)
commit844704b4883e1d603a5048ddc6cbad737ba8d9e8
treeb4fcdd30901e9893811affb1e9c1274b8a0f76ba
parent819c3db73acf5246cd332ad3062c61b7a2e8ee68
Use non-canocalized triple as cross-compiler prefix

I've noticed the problem when tried to install
cross-compiler using following configuration:

    $ ./configure --target=s390x-unknown-linux-gnu
    make install Stage1Only=YES

Instead of expected tool prefix
    's390x-unknown-linux-gnu-'
Result was:
    's390x-ibm-linux-gnu-'

It's problematic as installed binaries appear in
unpredictable location.

The problem is caused by use of ${target} autoconf variable.
${target} contains a canocalized triplet.

Luckily we already have non-canonucalized target triplet
in ${TargetPlatformFull} variable. The change uses that
instead.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
configure.ac