aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/linux.em
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-01-17 10:39:50 +1030
committerAlan Modra <amodra@gmail.com>2014-01-17 10:41:49 +1030
commit7225345dbbe39f61b1c7e52732b621cfb1d830c5 (patch)
tree3ab1e206ca2bc2dce63bbf935929f6055f42e4c6 /ld/emultempl/linux.em
parent40ed484e74e74fa116095eaf29e44b1cfee58811 (diff)
downloadfsf-binutils-gdb-7225345dbbe39f61b1c7e52732b621cfb1d830c5.zip
fsf-binutils-gdb-7225345dbbe39f61b1c7e52732b621cfb1d830c5.tar.gz
fsf-binutils-gdb-7225345dbbe39f61b1c7e52732b621cfb1d830c5.tar.bz2
Allow ld target customiser script to force on disk scripts.
Mucking with EMULATION_LIBPATH has unwanted side effects. Allow nds32 emulparams scripts to disable compiled-in scripts naturally, by setting COMPILE_IN=no. * genscripts.sh (COMPILE_IN): Don't set if already set. * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set COMPILE_IN=no. * emulparams/nds32elf16m.sh: Likewise. * emulparams/nds32elf_linux.sh: Likewise. * emultempl/aix.em: Test COMPILE_IN value is "yes". * emultempl/armcoff.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/gld960c.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68kcoff.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/ticoff.em: Likewise.
Diffstat (limited to 'ld/emultempl/linux.em')
-rw-r--r--ld/emultempl/linux.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/linux.em b/ld/emultempl/linux.em
index 61c7df4..5cf5bfa 100644
--- a/ld/emultempl/linux.em
+++ b/ld/emultempl/linux.em
@@ -131,7 +131,7 @@ static char *
gld${EMULATION_NAME}_get_script (int *isfile)
EOF
-if test -n "$COMPILE_IN"
+if test x"$COMPILE_IN" = xyes
then
# Scripts compiled in.