diff options
Diffstat (limited to 'toolchain/elf2flt/elf2flt/ld-elf2flt.in')
-rw-r--r-- | toolchain/elf2flt/elf2flt/ld-elf2flt.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolchain/elf2flt/elf2flt/ld-elf2flt.in b/toolchain/elf2flt/elf2flt/ld-elf2flt.in index 140b4f928..613dcbf97 100644 --- a/toolchain/elf2flt/elf2flt/ld-elf2flt.in +++ b/toolchain/elf2flt/elf2flt/ld-elf2flt.in @@ -15,12 +15,12 @@ LINKER="$0.real" # the original renamed-linker ELF2FLT="`expr $0 : '\(.*\)ld'`elf2flt" TOOLDIR="`dirname $0`" # let gcc find the tools for us -LDSCRIPTPATH="${TOOLDIR}/../@target_alias@/lib" # and the scripts +LDSCRIPTPATH="@binutils_ldscript_dir@" # and the scripts SHARED_ID="" NEWLDSCRIPT="" # check TOOLDIR from prefix/bin/ or prefix/target-alias/bin/ -[ -d "${TOOLDIR}/../@target_alias@/lib" ] || LDSCRIPTPATH="${TOOLDIR}/../lib" +[ -d "${LDSCRIPTPATH}" ] || LDSCRIPTPATH="${TOOLDIR}/../lib" # # if we have the elf2flt options, run it |