Subject: PKGCONFIG_OVERRIDE only for buildlinking (not for installed *.pc
To: None <tech-pkg@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/02/2006 14:24:00
Should we be "Adding rpaths to pkgconfig files" for the *pc files that are
actually installed?
For example, I am building an Xorg application without using pkgsrc build
system. But I am using the pkgsrc provided freetype2 and fontconfig and
pkg-config. Because the -Wl,-R${libdir} was added, it overrode my choice
for other libraries due to the pkgconfig --libs ordering (and used my
incompatible old pkgsrc libraries).
It seems like the PKGCONFIG_OVERRIDE should not change the installed *pc
files.
And if needed, instead of creating symlinks for
work/.buildlink/lib/pkgconfig/*pc files, create wrappers that modify the
Libs: line.
Any thoughts on this?
Or maybe the rpaths should never be added to the pkgconfig files even for
the pkgsrc builds?
When I manually removed the -Wl,-R${libdir} from the Libs: line in a few
of my used pc files provided by pkgsrc my problems were solved for that.
Jeremy C. Reed
technical support & remote administration
http://www.pugetsoundtechnology.com/