Fix -lib with fully specified output name and '-c'.

The whole output path handling code is in dire need of a
cleanup/rework.
This commit is contained in:
David Nadlinger
2013-03-18 13:33:55 +01:00
parent 7a58b2c1b2
commit 862ece3ca4

View File

@@ -380,7 +380,7 @@ int main(int argc, char** argv)
// LDC output determination
// if we don't link, autodetect target from extension
if(!global.params.link && global.params.objname) {
if(!global.params.link && !createStaticLib && global.params.objname) {
ext = FileName::ext(global.params.objname);
bool autofound = false;
if (!ext) {