[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] using pkg-config
From: |
Behdad Esfahbod |
Subject: |
Re: [ft-devel] using pkg-config |
Date: |
Tue, 17 Sep 2013 12:21:39 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 |
On 13-09-17 03:56 AM, John Tytgat wrote:
> On 9/17/2013 8:50 AM, Miles Bader wrote:
>> 2013/9/17 Behdad Esfahbod <address@hidden>:
>>>> It also used to the case that pkg-config didn't handle
>>>> cross-compilation properly (I haven't checked this in a while), which
>>>> seems like it would be an issue for freetype.
>>> Works just fine for cross-compiling. I do that every day.
>> It does? How does it work?
> Define PKG_CONFIG_LIBDIR
My favorite is in fact a wrapper. Eg.
$ cat ~/.local/i686-w64-mingw32/bin/i686-w64-mingw32-pkg-config
#!/bin/sh
PKG_CONFIG_LIBDIR=$HOME/.local/i686-w64-mingw32/lib/pkgconfig
export PKG_CONFIG_LIBDIR
exec pkg-config "$@"
>> At least with standard autoconf practices, pkg-config doesn't even
>> seem to notice if you're cross-compiling, and just gives info for the
>> cross-compilation host, which is usually incorrect...
> True, that's the current situation but with PKG_CONFIG_LIBDIR defined you can
> avoid this.
>
> There are plans for a --host option
> (http://www.freedesktop.org/wiki/Software/pkg-config/CrossCompileProposal/)
> but I don't know what the current state is.
>
> John.
--
behdad
http://behdad.org/
Re: [ft-devel] using pkg-config, Behdad Esfahbod, 2013/09/16