From ec844f503ccb49c46932dbb733a808eb28babcf1 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 17 Apr 2013 07:36:39 -0700 Subject: [PATCH] Fix regression in -L mangling for MSVC Commit 9bf6277b reworked how Libs arguments are parsed but unfortunately added an extra library suffix component into -L arguments. This only affects MSVC syntax where the suffix is .libs. All other platforms use a blank suffix in linker commands. --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index d37475f..3b549f8 100644 --- a/parse.c +++ b/parse.c @@ -645,7 +645,7 @@ static void _do_parse_libs (Package *pkg, int argc, char **argv) ++p; flag->type = LIBS_L; - flag->arg = g_strconcat (L_flag, p, lib_suffix, NULL); + flag->arg = g_strconcat (L_flag, p, NULL); pkg->libs = g_list_prepend (pkg->libs, flag); } else if (strcmp("-framework",p) == 0 && i+1 < argc)