summaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2010-10-28 12:06:27 +0000
committerAlan Modra <amodra@bigpond.net.au>2010-10-28 12:06:27 +0000
commit80ae14c557fede88194e985b421663d398e0b170 (patch)
tree159879d85aae2e68009827f47410a133469fdb29 /ld/ldfile.c
parent45676ca62ff62bdc9a922d139e2f87128bf60fa3 (diff)
downloadbinutils-redhat-80ae14c557fede88194e985b421663d398e0b170.tar.gz
* ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r--ld/ldfile.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index 2695905a3c..1732885fcc 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)