Re: [LTP] [PATCH] ltp: Fix cross-compile issue

Mats Liljegren
2015-02-16T08:27:54Z

My change never made it into the repository. Instead, Cyril prepended the path with ${SYSROOT}, where your cross-compile environment needs to setup SYSROOT path in order to make a proper cross-compile of LTP. See commit d4ab5d27d5ad666547d7b4d8e269e00921960c58. Cludgy, but it is simple and it works. This "=" thing I proposed apparently didn't work for everyone.

As for using pkg-config, I have no idea how that will work out in a cross-compile environment. But I guess it should be possible to go down that route as well...

/Mats
________________________________________
From: Mike Frysinger [vapier@gentoo.org]
Sent: Monday, February 16, 2015 6:17 AM
To: Mats Liljegren
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] ltp: Fix cross-compile issue

On 16 Dec 2014 15:34, Mats Liljegren wrote:
> --- 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"
> + TIRPC_CPPFLAGS="-I=/usr/include/tirpc"
> AC_DEFINE(HAVE_LIBTIRPC, 1, [Define to 1 if you have libtirpc headers installed])
> AC_CHECK_LIB(tirpc, rpcb_set, [TIRPC_LIBS="-ltirpc"])])

this m4 is fatally flawed and tweaking the flags won't help. we should switch
to use pkg-config here. a cursory glance suggests acl/cap should also be
updated.
-mike