From 7225345dbbe39f61b1c7e52732b621cfb1d830c5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 17 Jan 2014 10:39:50 +1030 Subject: 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. --- ld/emultempl/linux.em | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/emultempl/linux.em') 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. -- cgit v1.1