On 19/09/2011 10:24, Tollef Fog Heen wrote: > ]] Vincent Danjean > > | I already raise (without answer) the question when <triplet> is not > | <multiarchdir> (if I recall correctly, this is the case for the i386 > | Debian architecture). > > $triplet really means $multiarchdir in my text.
/usr/share/pkg-config-crosswrapper uses: triplet=`basename $0 | sed -e 's:-pkg-config::'` PKG_CONFIG_LIBDIR=/usr/${triplet}/lib/pkgconfig pkg-config $@ So, here, triplet is not multiarchdir. It has been suggested is this thread that /usr/lib/<triplet>/pkgconfig/ should be used. In this case, triplet is *not* multiarchdir. So /usr/share/pkg-config-crosswrapper needs to be fixed. > | So, how pkg-config (and other tools) does the <triplet> -> > | <multiarchdir> translation? Is it hard-coded? > > $(dpkg-architecture -qDEB_BUILD_MULTIARCH) at build time, as you can see > in the rules file. dpkg-architecture can convert Debian arch to triplet (DEB_HOST_GNU_TYPE) and multiarchdir (DEB_HOST_MULTIARCH) Is there an easy way to convert triplet to multiarchdir ? (which is what is needed for pkg-config-crosswrapper) Regards, Vincent -- Vincent Danjean GPG key ID 0x9D025E87 vdanj...@debian.org GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87 Unofficial pkgs: http://moais.imag.fr/membres/vincent.danjean/deb.html APT repo: deb http://people.debian.org/~vdanjean/debian unstable main -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4e78792f.7070...@free.fr