mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user