From d69d2a835cfcda2e79de20d2709622336bead31c Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Tue, 6 Mar 2012 10:13:12 +0400 Subject: [PATCH] =?UTF-8?q?Fixed=20#83=20=E2=80=94=20ldc=20claim=20a=20mai?= =?UTF-8?q?n=20block=20when=20trying=20to=20build=20as=20shared=20lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/linker.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gen/linker.cpp b/gen/linker.cpp index 3bf0e8f4..42688ad7 100644 --- a/gen/linker.cpp +++ b/gen/linker.cpp @@ -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());