On Wed, 17 Dec 2014 13:09:43 +0100
Cyril Hrubis <[email protected]> wrote:

> Hi!
> > Compilation included the flag "-I/usr/include/tirpc" which ignores
> > sysroot. This makes a cross-compile to suddenly use host files
> > rather than the files installed in the compiler sysroot.
> > 
> > By prepending path with "=", the "=" will be replaced with the
> > sysroot path.
> 
> Unfortunatelly this does not work for me. The compiler fails to find
> the header after the change.
> 
> > diff --git a/m4/ltp-tirpc.m4 b/m4/ltp-tirpc.m4
> > index 73fde51..f4df239 100644
> > --- a/m4/ltp-tirpc.m4
> > +++ b/m4/ltp-tirpc.m4
> > @@ -25,7 +25,7 @@ AC_DEFUN([LTP_CHECK_TIRPC],[
> >     TIRPC_LIBS=""
> >  
> >     AC_CHECK_HEADER(tirpc/netconfig.h,[
> > -           TIRPC_CPPFLAGS="-I/usr/include/tirpc"
> 
> I've looked around for a solution and the internet seems to suggest to
> add ${SYSROOT} before the /usr/include/tirpc:
> 
> +             TIRPC_CPPFLAGS="-I${SYSROOT}/usr/include/tirpc"
> 
> Does that work for you?
> 

Yes, it worked.

Will you make the change, or do you want a new patch from me?

/Mats

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to