[systemd-devel] [PATCH] Add libkmod flags for test_rtnl_manual

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Apr 17 20:41:33 PDT 2014


On Mon, Apr 14, 2014 at 03:14:14PM +0200, Łukasz Stelmach wrote:
> ---
>  Makefile.am | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> Without CFLAGS my gcc is unable to find linkmod.h. KMOD_LIBS just look
> better than -lkomd for me.
> 
> diff --git a/Makefile.am b/Makefile.am
> index 0ad1729..6767a76 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -1402,10 +1402,14 @@ test_ipcrm_LDADD = \
>  test_rtnl_manual_SOURCES = \
>  	src/test/test-rtnl-manual.c
>  
> +test_rtnl_manual_CFLAGS = \
> +	$(AM_CFLAGS) \
> +	$(KMOD_CFLAGS)
> +
>  test_rtnl_manual_LDADD = \
>  	libsystemd-internal.la \
>  	libsystemd-shared.la \
> -	-lkmod
> +	$(KMOD_LIBS)
>  
>  test_ellipsize_SOURCES = \
>  	src/test/test-ellipsize.c
> -- 
Applied, with a follow up patch.

Zbyszek



More information about the systemd-devel mailing list