summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2013-04-17 07:36:39 -0700
committerDan Nicholson <dbn.lists@gmail.com>2013-04-18 05:42:59 -0700
commitec844f503ccb49c46932dbb733a808eb28babcf1 (patch)
tree82154c30e21eda4de9b77baa5a7f9ebc239fabe1
parent7328e6fc9ec4191105cd4433320ea585d8f95d97 (diff)
downloadpkg-config-ec844f503ccb49c46932dbb733a808eb28babcf1.tar.gz
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.
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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)