We would like to fix the behavior of cgo invoking pkg-config on Windows, for
golang.org/issue/16455. From the failure in the report, it appears that pkg-config --libs printed the actual text "C:/Program Files (x86)/libgit2/lib" as part of its output, without any kind of escaping of the spaces in that path. In contrast, the Unix pkg-config always escapes a space with a backslash. We're trying to figure out whether there is some commonly used Windows port of pkg-config that does escaping differently and, if so, what the rules are.
Does anyone use pkg-config on Windows? Can you see what output you get from --cflags and --libs for any real library that you have installed in a path with spaces?
Thanks.