summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-platform.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/core/slang-platform.cpp b/source/core/slang-platform.cpp
index e46851095..5185d5d23 100644
--- a/source/core/slang-platform.cpp
+++ b/source/core/slang-platform.cpp
@@ -209,9 +209,11 @@ SLANG_COMPILE_TIME_ASSERT(E_OUTOFMEMORY == SLANG_E_OUT_OF_MEMORY);
dst.Append(name);
dst.Append(".dylib");
#elif SLANG_LINUX_FAMILY
- dst.Append("lib");
+ if (!name.startsWith("lib"))
+ dst.Append("lib");
dst.Append(name);
- dst.Append(".so");
+ if (name.indexOf(UnownedStringSlice(".so.")) == -1)
+ dst.Append(".so");
#else
// Just guess we can do with the name on it's own
dst.Append(name);