Define READELF_FOR_TARGET in gcc build
Andrew Hsieh [Wed, 27 Mar 2013 04:41:43 +0000 (21:41 -0700)]
Otherwise realelf won't be found in darwin, and cause
some backend to misbehave.

READELF_FOR_TARGET appears in gcc-4.7, but is backported
to gcc-4.6 as well.

Change-Id: Ia45b3ce046cc68a40862be8f5a906606d2fd0665

Makefile.in

index c0c7ee2..9a86d55 100644 (file)
@@ -132,7 +132,8 @@ export      AS_FOR_TARGET=$(TARGET_BINUTILS_BUILDDIR)/gas/as-new \
        NM_FOR_TARGET=$(TARGET_BINUTILS_BUILDDIR)/binutils/nm-new \
        STRIP_FOR_TARGET=$(TARGET_BINUTILS_BUILDDIR)/binutils/strip-new \
        RANLIB_FOR_TARGET=$(TARGET_BINUTILS_BUILDDIR)/binutils/ranlib \
-       OBJDUMP_FOR_TARGET=$(TARGET_BINUTILS_BUILDDIR)/binutils/objdump
+       OBJDUMP_FOR_TARGET=$(TARGET_BINUTILS_BUILDDIR)/binutils/objdump \
+       READELF_FOR_TARGET=$(TARGET_BINUTILS_BUILDDIR)/binutils/readelf
 
 TARGET_MINIMAL_GCC_EXPORTS= \
 export CC_FOR_TARGET="$(TARGET_GCC_BUILDDIR)/gcc/xgcc \