'system cflags' with other prefix
Craig Treleaven
ctreleaven at cogeco.ca
Tue Jan 12 07:49:37 PST 2016
> On Jan 12, 2016, at 10:41 AM, Tollef Fog Heen <tfheen at err.no> wrote:
>
> ]] 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.
I think pkg-config was built the way you suggest. Following are the args supplied to pkg-config’s configure through the MacPorts build:
configure.args --disable-silent-rules \
--disable-host-tool \
--with-pc-path=${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig \
--with-internal-glib \
--docdir=${docdir}
https://trac.macports.org/browser/trunk/dports/devel/pkgconfig/Portfile#L34
${prefix} is /opt/local for a default install.
Should we be using some other configure arguments?
Craig
More information about the pkg-config
mailing list