From 1c452a9f1d18c85a625dfd2fa9bb353309481429 Mon Sep 17 00:00:00 2001 From: Fabrizio Fabbri Date: Thu, 8 Sep 2016 12:45:30 -0400 Subject: [PATCH] MSVC - avoid name clash on export libraries for program link. fix #287 --- src/cmp/cmpmain.lsp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmp/cmpmain.lsp b/src/cmp/cmpmain.lsp index 2a1568fbf..fb56d8656 100755 --- a/src/cmp/cmpmain.lsp +++ b/src/cmp/cmpmain.lsp @@ -132,7 +132,9 @@ the environment variable TMPDIR to a different value." template)) ,@object-files ,@(split-program-options *ld-rpath*) ,@(split-program-options *user-ld-flags*) - ,@ld-flags)) + ,@ld-flags + ,(if (eq type :program) + (concatenate 'string "/IMPLIB:prog" (file-namestring o-pathname) ".lib") "" ))) (embed-manifest-file o-pathname type) (delete-msvc-generated-files o-pathname))