Include paths specified with -isystem are not mangled #94
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
When a .pc file specifies include paths using
-isystem
, those pathsare not prefixed with
PKG_CONFIG_SYSROOT_DIR
.For example, the libbsd-overlay.pc (from libbsd) contains:
Which when in cross-compilation causes build failures because the path
isn't prefixed with
PKG_CONFIG_SYSROOT_DIR
and thus points to thebuild system headers (if they are present).
What does ${includedir} look like in that .pc file? It may need to be fixed.
Hello,
Here is the
libbsd-overlay.pc
as installed:Regards,
Yann E. MORIN.
Interesting. I'll see what I can do.
Great, thanks!
If you need testing, do not hesitate to ask!
Regards,
Yann E. MORIN.
Hello again,
I was looking back at this issue, and did some experiment. I just noticed that, when
replacing
-isystem
with just-I
, the path was not mangled either:But now, if I remove the space between
-I
and the path, it works:It is perfectly valid for
-I
to be followed by a space.The issue also happens for
-L
if it is followed by a space, which is also perfectly valid.Should I open a different issue for those?
Regards,
Yann E. MORIN.
We are still examining the situation!
Thanks! :-)
I'll be testing that soon!
Regards,
Yann E. MORIN.