--keep-system-cflags should be the default if c compiler does not share same prefix #57

Closed
opened 2013-10-02 03:29:11 +00:00 by dankegel · 1 comment
dankegel commented 2013-10-02 03:29:11 +00:00 (Migrated from github.com)

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.

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.

Use `--with-system-libdir=/usr/lib` and `--with-system-includedir=/usr/include`. We should probably document this on README.md.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#57
There is no content yet.