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

Cyril Hrubis
2015-02-17T16:50:05Z

Hi!
> > --- 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.

Looking pkg-config on my system only libtirpc supported.

There seems to be nothing nothing for libacl nor for libcap (not to be
confused with libcap-ng).

I guess that we may fix the ltp-tirpc.m4 to use pkg-config, if available
but not much more than that.

--
Cyril Hrubis
chrubis@suse.cz