mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fixed #83 — ldc claim a main block when trying to build as shared lib
This commit is contained in:
@@ -272,12 +272,14 @@ int linkObjToBinary(bool sharedLib)
|
||||
else
|
||||
output.append(libExt);
|
||||
}
|
||||
args.push_back("-shared");
|
||||
} else if (global.params.os == OSWindows && !endsWith(output, ".exe")) {
|
||||
output.append(".exe");
|
||||
}
|
||||
}
|
||||
|
||||
if (sharedLib)
|
||||
args.push_back("-shared");
|
||||
|
||||
args.push_back("-o");
|
||||
args.push_back(output.c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user