--keep-system-cflags should be the default if c compiler does not share same prefix #57
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?
Testing pkgconf-0.9.3.
I have pkgconf installed to /opt/foo/bin/pkgconf,
and the C compiler is in /usr/bin/gcc.
I have a library in /opt/foo/include/foo.h and /opt/foo/lib/libfoo.a,
and its .pc file says
prefix=/opt/foo
includedir=${prefix}/include
Cflags: -I${includedir}
In this situation, pkgconf --cflags never outputs -I/opt/foo/include
which is pretty annoying. I apply https://gist.github.com/dankegel/6788768 to make --keep-system-foo the default. Perhaps a configure option would be appropriate.
Use
--with-system-libdir=/usr/lib
and--with-system-includedir=/usr/include
. We should probably document this on README.md.