grub-devel
[Top][All Lists]
Advanced

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

Re: [BUG][PATCH] configure.ac: Respect the configured freetype-config


From: Paul Menzel
Subject: Re: [BUG][PATCH] configure.ac: Respect the configured freetype-config
Date: Sun, 09 Jun 2013 23:10:14 +0200

Am Samstag, den 08.06.2013, 08:00 +0400 schrieb Andrey Borzenkov:
> В Fri, 7 Jun 2013 14:35:10 -0400
> David Michael <address@hidden> пишет:

> > On Fri, Jun 7, 2013 at 2:20 PM, Andrey Borzenkov <address@hidden> wrote:
> > > But FREETYPE cannot be anything than freetype-config, can it? Do you
> > > actually have situation when AC_CHECK_PROGS([FREETYPE],
> > > [freetype-config]) succeeds but call to freetype-config fails?
> > 
> > In my case, I noticed this issue while attempting to cross-compile
> > GRUB for another system. It needs to use the cross-compiled freetype
> > configuration, but the build system has its native freetype-config
> > installed as well.  Using a variable here allowed me to specify the
> > correct freetype-config as per the usual AC_CHECK_PROGS behavior.
> > 
> 
> I still do not understand it. AC_CHECK_PROG does not change behavior in
> case of cross-compilation, it simply finds first program in PATH.
> 
> Could you explain you setup in more details and show config.log both
> with and without your patch?

But later on

    freetype_cflags=`$FREETYPE --cflags`

is executed, which is going to get the CFLAGS from the build(?) system
(GRUB is built on) and not the target(?) system (GRUB is built for), so
the flags from the build system are going to be used (like x86 and not
ARM).

> > This isn't a big problem since I am able to build on the target system
> > as well, but it would be nice to have working out of the box.


Thanks,

Paul

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]