From 120bf4429ca3dbe5778f914c0c2168c0e74780dd Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Tue, 6 Mar 2012 10:18:45 +0400 Subject: [PATCH] Partially reverted fix for #66. ldc still supports -soname switch but does not set soname by default as suggested in issue #66. --- gen/linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/linker.cpp b/gen/linker.cpp index 42688ad7..33bf2c5c 100644 --- a/gen/linker.cpp +++ b/gen/linker.cpp @@ -350,7 +350,7 @@ int linkObjToBinary(bool sharedLib) OutBuffer buf; if (opts::createSharedLib && addSoname) { - std::string soname = opts::soname.getNumOccurrences() == 0 ? output : opts::soname; + std::string soname = opts::soname; if (!soname.empty()) { buf.writestring("-Wl,-soname,"); buf.writestring(soname.c_str());