OSDN Git Service

Rules.mak: MIPS64: Select correct interpreter
authorMarkos Chandras <markos.chandras@imgtec.com>
Thu, 11 Jul 2013 16:59:16 +0000 (17:59 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 19 Jul 2013 15:35:00 +0000 (17:35 +0200)
commit603af30d6992e94ac30a66b953264076f4f2fd71
treef1fce0cf656f0f31e51084c0e361a6cacb255fd0
parent4a96b948687166da26a6c327e6c6733ad2336c5c
Rules.mak: MIPS64: Select correct interpreter

gcc (eg 4.7.3) hardcodes the MIPS64 interpreters like this:
(see gcc/config/linux.h and gcc/config/mips/linux64.h)

o32: UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
n32: UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
n64: UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"

The existing check for MIPS64 in uClibc is wrong because it does
not respect the selected ABI

We fix this by explicitely checking the selected ABI instead of the
selected MIPS variant.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Rules.mak