[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cross pkgconfig



I've been using a pkg-config configured like:

    "${CT_SRC_DIR}/pkg-config-${CT_PKG_CONFIG_VERSION}/configure" \
            --target=${CT_TARGET}                       \
            --program-prefix=${CT_TARGET}-              \
            --prefix="${CT_PREFIX_DIR}"                 \
            --with-pc-path="${CT_SYSROOT_DIR}"/usr/lib/pkgconfig

Then when I configure packages for cross-building, I override:
PKG_CONFIG="${HOST_TUPLE}-pkg-config --define-variable=prefix=$DESTDIR/usr" \
PKG_CONFIG_LIBDIR=$DESTDIR/usr/lib/pkgconfig \

A configure script built with current autotools will pick up on that
and do the right thing, apart from the occasional foul-up having to do
with a .pc file whose exec_prefix is not defined in terms of $prefix,
etc.  I have some patches that I'll gather together and send out soon;
I use them with a crosstool-ng toolchain and some home-grown
cross-build scripting infrastructure, but the principle is the same.

On Tue, Mar 15, 2011 at 11:13 AM, Baurzhan Ismagulov <ibr@radix50.net> wrote:
> On Tue, Mar 15, 2011 at 05:25:58PM +0000, Wookey wrote:
>> What did you conclude about cross-pkgconfig
>> Should we be using --host <triplet> or <triplet>-pkg-config to call it
>> in 'cross-mode'?
>
> FWIW, autotools support <triplet>-pkg-config right now, but you surely
> know this already.
>
> With kind regards,
> --
> Baurzhan Ismagulov
> http://www.kz-easy.com/
>
>
> --
> To UNSUBSCRIBE, email to debian-embedded-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: 20110315181328.GD4841@radix50.net">http://lists.debian.org/20110315181328.GD4841@radix50.net
>
>


Reply to: