aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gccld
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2004-01-26 20:59:41 +0000
committerJohn Criswell <criswell@uiuc.edu>2004-01-26 20:59:41 +0000
commit7f7d16b62f9789c378a489a65ad51d50687c4c36 (patch)
tree0dc7f53fb0aa8b8b0d0d15c39b72235b37b76217 /tools/gccld
parent48e9f26df5f6085a1c972069ba6aa227821cd41c (diff)
downloadexternal_llvm-7f7d16b62f9789c378a489a65ad51d50687c4c36.zip
external_llvm-7f7d16b62f9789c378a489a65ad51d50687c4c36.tar.gz
external_llvm-7f7d16b62f9789c378a489a65ad51d50687c4c36.tar.bz2
Fixes for PR214. Use the SHLIBEXT variable instead of hardcoding .so into
every file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld')
-rw-r--r--tools/gccld/Linker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gccld/Linker.cpp b/tools/gccld/Linker.cpp
index 7cd440d1..296d87b 100644
--- a/tools/gccld/Linker.cpp
+++ b/tools/gccld/Linker.cpp
@@ -56,8 +56,8 @@ std::string llvm::FindLib(const std::string &Filename,
if (!SharedObjectOnly && FileOpenable(Directory + LibName + ".bc"))
return Directory + LibName + ".bc";
- if (FileOpenable(Directory + LibName + ".so"))
- return Directory + LibName + ".so";
+ if (FileOpenable(Directory + LibName + SHLIBEXT))
+ return Directory + LibName + SHLIBEXT;
if (!SharedObjectOnly && FileOpenable(Directory + LibName + ".a"))
return Directory + LibName + ".a";