From: Cyril H. <ch...@su...> - 2014-12-17 12:10:05
|
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 ch...@su... |