<p dir="ltr">On Jan 12, 2016 8:18 AM, "Tollef Fog Heen" <<a href="mailto:tfheen@err.no">tfheen@err.no</a>> wrote:<br>
><br>
> ]] Craig Treleaven<br>
><br>
> > Eg, with MacPorts:<br>
> > $ pkg-config --cflags x264<br>
> > -I/opt/local/include                     ## want to make this disappear since it is the ‘system include'<br>
><br>
> If /opt/local/include is already on the compiler search path, pkg-config<br>
> should be compiled with that knowledge, at which point it'll strip it<br>
> out, like /usr/include on Linux.</p>
<p dir="ltr">This isn't documented (should be), but you can override pkg-config's notion of the system include path with the environment variable PKG_CONFIG_SYSTEM_INCLUDE_PATH. If that's not set, it uses the compiled in defaults. That's been in pkg-config for a long time, so it should work with the version you have. This should be in the form of a path style variable with : separators.</p>
<p dir="ltr">Dan</p>