anyone using pkg-config on Windows?

668 views
Skip to first unread message

Russ Cox

unread,
Nov 3, 2016, 3:36:40 PM11/3/16
to golang-nuts
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.
Russ

Justin Israel

unread,
Nov 4, 2016, 4:57:07 PM11/4/16
to Russ Cox, golang-nuts
I don't know if this is helpful, since I don't personally work in Windows, but Windows users of a binding I help maintain have had to deal with pkg-config as part of the process. Part of their proposed solution was using pkg-config lite? 

Thread here:


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages