Skip to content

Commit

Permalink
MS linker expects /libpath:DIR, not -LDIR. Avoids warning when -pack'…
Browse files Browse the repository at this point in the history
…ing.
  • Loading branch information
alainfrisch committed Dec 11, 2015
1 parent 87f92ab commit 44b8b51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion utils/ccomp.ml
Expand Up @@ -112,10 +112,15 @@ let remove_Wl cclibs =
let call_linker mode output_name files extra =
let cmd =
if mode = Partial then
let l_prefix =
match Config.ccomp_type with
| "msvc" -> "/libpath:"
| _ -> "-L"
in
Printf.sprintf "%s%s %s %s %s"
Config.native_pack_linker
(Filename.quote output_name)
(quote_prefixed "-L" !Config.load_path)
(quote_prefixed l_prefix !Config.load_path)
(quote_files (remove_Wl files))
extra
else
Expand Down

0 comments on commit 44b8b51

Please sign in to comment.