mbtools: fix compilation with newer glib

Remove Werror as glib throws deprecation warnings.

Cleaned up Makefile for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-03-20 00:29:22 -07:00
parent 0960a401d8
commit 647721c61e
2 changed files with 20 additions and 12 deletions
+11
View File
@@ -0,0 +1,11 @@
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@ AC_CHECK_HEADERS([stdio.h stdlib.h string.h unistd.h])
MBTOOLS_REQUIRES="glib-2.0 >= 2.10.0 libmodbus >= 3.1.0"
PKG_CHECK_MODULES(MBTOOLS_DEPS, [$MBTOOLS_REQUIRES])
-MBTOOLS_CFLAGS="-Wall -Werror $MBTOOLS_DEPS_CFLAGS"
+MBTOOLS_CFLAGS="-Wall $MBTOOLS_DEPS_CFLAGS"
MBTOOLS_LIBS="$MBTOOLS_DEPS_LIBS"
AC_SUBST(MBTOOLS_CFLAGS)
AC_SUBST(MBTOOLS_LIBS)