aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-06-22 18:19:01 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-06-22 18:19:01 -0400
commit245c3e25d6754a5d7f298a01fddf53723010ca13 (patch)
treeee2a08a88863921c816eae5da72b34578782fe14 /gcc
parent5ca87b7ab3d4e7acaf7d331371daa09deda38ac9 (diff)
downloadgcc-245c3e25d6754a5d7f298a01fddf53723010ca13.zip
gcc-245c3e25d6754a5d7f298a01fddf53723010ca13.tar.gz
gcc-245c3e25d6754a5d7f298a01fddf53723010ca13.tar.bz2
(locatelib): Fix parsing of LD_LIBRARY_PATH.
From-SVN: r10024
Diffstat (limited to 'gcc')
-rw-r--r--gcc/collect2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 87ae569..52a0445 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -2181,7 +2181,7 @@ locatelib (name)
if (*q == ':')
{
*q++ = 0;
- *pp++ = p;
+ *pp++ = q;
}
}
/* built in directories are /lib, /usr/lib, and /usr/local/lib */