Hey Kevin, On 08/28/2011 02:36 PM, Kevin DeKorte wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 08/27/2011 08:17 PM, Maarten Lankhorst wrote: >> Hey Kevin, >> >> On 08/24/2011 05:34 PM, Kevin DeKorte wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>> >>> On a biarch machine like Fedora llvm-config defaults to >>> outputting the values for a 64bit build. With a recent patch to >>> llvm-devel there are now arch specific versions of llvm-config >>> and this patch should use them properly. With this patch I the >>> proper llvm-config is used for 64 bit and 32bit builds. There may >>> be a better way to do this, so this is an example that worked for >>> me. >>> >> Can't you just make sure there is a llvm.pc pkgconfig file? That >> would work a lot better.. >> >> ~Maarten > llvm-devel doesn't seem to include .pc files. They are using > llvm-config instead of pkg-config to report where the libraries and > include files are. > > Kevin > I know, but maybe they should move towards using pkg-config? It's just installing 1 extra file for each arch to /usr/lib$n/pkgconfig/llvm.pc
A dummy llvm.pc would look like this: prefix=/usr exec_prefix=/usr libdir=/usr/lib includedir=/usr/include Name: llvm Description: Low level virtual machine Version: 2.8 Requires: libffi Libs: -L${libdir}/llvm -lLLVM.* -lpthread -ldl -lm Libs.private: Cflags: -I${libdir} -fexceptions -D__STDC_LIMIT_MACROS This would also work better for multiarch systems like debian. ~Maarten _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev