I'm using the multilib_toolchain_setup to get everything set up for a multilib build. It would be great if that function handled pkg-config as well. I'm not sure if we should mangle PKG_CONFIG_PATH or just export a plain one. I will attach a patch once I get it to work somehow ;).
Created attachment 336232 [details] Patch adding exports I'm exporting two vars there: 1) PKG_CONFIG_LIBDIR=/usr/$(get_libdir)/pkgconfig 2) PKG_CONFIG_PATH=/usr/share/pkgconfig it may seem a bit ugly but we need to override PKG_CONFIG_LIBDIR so that in case of missing .pc file, pkg-config won't look in the default one (lib64). And since the fallback is always performed, I see no point in duplicating the path in PKG_CONFIG_PATH.
Comment on attachment 336232 [details] Patch adding exports >- for v in CHOST CBUILD AS CC CXX LD ; do >+ for v in CHOST CBUILD AS CC CXX LD PKG_CONFIG_LIBDIR PKG_CONFIG_PATH >+ do don't screw with the style (break it) you can condense the vars into PKG_CONFIG_{PATH,LIBDIR} the rest looks OK
(In reply to comment #2) > Comment on attachment 336232 [details] > Patch adding exports > > >- for v in CHOST CBUILD AS CC CXX LD ; do > >+ for v in CHOST CBUILD AS CC CXX LD PKG_CONFIG_LIBDIR PKG_CONFIG_PATH > >+ do > > don't screw with the style (break it) It was to keep the line-width. > you can condense the vars into PKG_CONFIG_{PATH,LIBDIR} Ok. > the rest looks OK
Created attachment 336318 [details, diff] Fixed style Here you go.
Comment on attachment 336318 [details, diff] Fixed style looks fine ... feel free to commit
/var/cvsroot/gentoo-x86/eclass/ChangeLog,v <-- ChangeLog new revision: 1.630; previous revision: 1.629 /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v <-- multilib.eclass new revision: 1.102; previous revision: 1.101