Partially reverted fix for #66.

ldc still supports -soname switch but does not set soname by default as
suggested in issue #66.
This commit is contained in:
Alexey Prokhin
2012-03-06 10:18:45 +04:00
parent d69d2a835c
commit 120bf4429c

View File

@@ -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());