'system cflags' with other prefix

Tollef Fog Heen tfheen at err.no
Tue Jan 12 07:41:19 PST 2016

]] Craig Treleaven 

> Eg, with MacPorts:
> $ pkg-config --cflags x264
> -I/opt/local/include                     ## want to make this disappear since it is the ‘system include'

If /opt/local/include is already on the compiler search path, pkg-config
should be compiled with that knowledge, at which point it'll strip it
out, like /usr/include on Linux.

Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

More information about the pkg-config mailing list