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.
This commit is contained in:
Dan Nicholson 2013-04-17 07:36:39 -07:00
parent 7328e6fc9e
commit ec844f503c

View file

@ -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)