On Mon, 2006-05-01 at 12:04 -0400, Tom Lane wrote: > Peter Jones <pjones@xxxxxxxxxx> writes: > > On Mon, 2006-05-01 at 11:24 -0400, Tom Lane wrote: > >> How will that fix the problem that you need to return different results > >> depending on whether the user is interested in the 32-bit or 64-bit > >> libraries? Right now the script would require psychic abilities to > >> figure that out, because the user has no way to indicate it. > > > ... You don't want to have to change the paths everywhere > > to build for the other arch, you want to do: > > rpm -ba --target=i386 foo.spec > > and just have it work. > > If you have a non-psychic solution for that, I'd like to see it, because > I'm not seeing what it is. Have rpmbuild setup PKG_CONFIG_PATH according to target arch ? Matthias