From: Alan Modra Date: Thu, 28 Oct 2010 12:06:27 +0000 (+0000) Subject: * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ace9d8665fab93c30e94c3081b2a7f89843fb560;p=binutils-gdb.git * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 0ee2ed7fc9a..8ea6f6d92da 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2010-10-28 Alan Modra + + * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR. + 2010-10-28 Matthias Klose * ld.texinfo: Add directory section for info document. diff --git a/ld/ldfile.c b/ld/ldfile.c index 2695905a3cc..1732885fcce 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -547,7 +547,6 @@ check_for_scripts_dir (char *dir) SCRIPTDIR (passed from Makefile) (adjusted according to the current location of the binary) - SCRIPTDIR (passed from Makefile) the dir where this program is (for using it from the build tree). */ static char * @@ -571,10 +570,6 @@ find_scripts_dir (void) free (dir); } - if (check_for_scripts_dir (SCRIPTDIR)) - /* We've been installed normally. */ - return SCRIPTDIR; - /* Look for "ldscripts" in the dir where our binary is. */ dir = make_relative_prefix (program_name, ".", "."); if (dir)