On Monday 2016-03-14 09:50, Werner LEMBERG wrote:
openSuSE's 32bit package of zlib doesn't come with a proper 32bit `zlib.pc' file [...] Bug? Intention?
At first, I thought it a bug. But then reconsidered, ask yourself the following: when you have two *.pc files, one in /usr/lib/pkgconfig and another in /usr/lib64/pkgconfig, which file would PKG_CHECK_MODULE() macro refer to?
pkg-config itself is buggy, since it doesn't support multiple architectures at the same time. HOWEVER: I still think that 32bit .pc files should be provided, using a cross-compiling approach so that a call like
configure --host=i686-linux-gnu \ CFLAGS=-m32 \ CXXFLAGS=-m32 \ LDFLAGS=-m32
That already works today, even if only by chance. Since there is no i686-linux-gnu-pkg-config present, the regular pkg-config will be used, which, generally, has the same -I and -L,-l flags for packages irrespective of build target. Rather than /usr/lib/pkgconfig, one ought to consider /usr/lib/$tuple/pkgconfig and/or /usr/$target/bin for these things. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org