# HG changeset patch # User Rob Landley # Date 1442441291 18000 # Node ID 17d2316a3c3a295f03fc78568836ee2f935c41c2 # Parent 4f78f4fece38d006955989fe95e4ed8949fe78f3 The elf2flt wrapper sometimes calles the unprefixed ld.real. Humor it for now. diff -r 4f78f4fece38 -r 17d2316a3c3a sources/sections/elf2flt.sh --- a/sources/sections/elf2flt.sh Mon Sep 14 04:01:22 2015 -0500 +++ b/sources/sections/elf2flt.sh Wed Sep 16 17:08:11 2015 -0500 @@ -17,4 +17,14 @@ --with-zlib-prefix="$STAGE_DIR/host" && make -j $CPUS && make install TARGET="$CROSS_TARGET" PREFIX="$TOOLCHAIN_PREFIX" + +[ $? -ne 0 ] && dienow + +# elf2flt's wrapper sometimes calls the unprefixed version of this. :( + +if [ ! -e "$STAGE_DIR/bin/ld.real" ] +then + ln -s "${TOOLCHAIN_PREFIX}ld.real" "$STAGE_DIR/bin/ld.real" +fi + cleanup