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?

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to