pkgconfig: do not quote Libs - #4110
Conversation
It doesn't make sense at all.
|
👍 we have the same issue on FreeBSD |
|
Well, I'm not too sure about this. While I'd also say that the quotes should in fact not be necessary, they have been explicitly added #3569. This is related to Windows build failures with rugged, see libgit2/rugged#559 and 835be6c. Any comments, @arthurschreiber @mscharley? |
|
My only comment is that it's not only necessary on Windows, just more likely to be an issue there. GCC and friends (at least under mingw) treat this file as a list of shell arguments, hence the quoting to ensure that paths with spaces or other similar meta characters in them work correctly. Perhaps a solution that might work is moving the open quote to the start of the parameter instead of starting the quote half-way through the option which is something that works in shell, but may not work so well in other systems. If that still doesn't help, it seems like an incompatibility between different tool chains and I'm not really proficient with C tool chains so I'm not sure how much more help I can be. |
|
A short test shows that we shouldn't actually require quotes at all: On command line: So pkg-config should automatically escape whitespace here, if I'm not mistaken. |
|
@pks-t What platform did you just test? Is that cygwin? |
|
Testing with mingw: Looks like the right solution could be to move the quoting to the |
|
I agree that quoting libdir is the right thing to do here |
|
@ignatenkobrain Are you able to make this change to quote libdir and test on your platform? |
|
Closing in favor of #4193 |
It doesn't make sense at all.