On Tue, May 29, 2018 at 11:42:15PM +0200, Anders Selhammer wrote:
> diff --git a/incdefs.sh b/incdefs.sh
> index 19e620e..d8ae7d5 100755
> --- a/incdefs.sh
> +++ b/incdefs.sh
> @@ -88,5 +88,16 @@ kernel_flags()
> fi
> }
>
> -flags="$(user_flags)$(kernel_flags)"
> +#
> +# Look for libsnmp presence.
> +#
> +snmp_flags()
> +{
> + libsnmp=/usr/include/net-snmp/
This won't work when cross compiling. That is an important use case,
and we should support it.
> + if [ -d ${libsnmp} ]; then
> + printf " -I. `net-snmp-config --cflags`"
Does libsnmp deliver pkgconfig files? If so we can use them.
Or is net-snmp-config a shell script (or similar) that delivers
correct paths when cross compiling?
> + fi
> +}
> +
> +flags="$(user_flags)$(kernel_flags)$(snmp_flags)"
> echo "$flags"
Thanks,
Richard
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel