mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
Fixed #83 — ldc claim a main block when trying to build as shared lib
This commit is contained in:
parent
53f9964b95
commit
d69d2a835c
1 changed files with 3 additions and 1 deletions
|
@ -272,12 +272,14 @@ int linkObjToBinary(bool sharedLib)
|
||||||
else
|
else
|
||||||
output.append(libExt);
|
output.append(libExt);
|
||||||
}
|
}
|
||||||
args.push_back("-shared");
|
|
||||||
} else if (global.params.os == OSWindows && !endsWith(output, ".exe")) {
|
} else if (global.params.os == OSWindows && !endsWith(output, ".exe")) {
|
||||||
output.append(".exe");
|
output.append(".exe");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sharedLib)
|
||||||
|
args.push_back("-shared");
|
||||||
|
|
||||||
args.push_back("-o");
|
args.push_back("-o");
|
||||||
args.push_back(output.c_str());
|
args.push_back(output.c_str());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue