From e22747ce79435744fc4f28e07ad6813ccaa1b306 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 9 Apr 2018 14:45:03 +0200 Subject: [PATCH] build: no fatal errors when compiling with embedded libevent on macOS --- .travis.yml | 5 ++++- src/daemon/Makefile.am | 2 +- tests/ci/run.sh | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ac7e87a4..0080b2ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,11 +27,14 @@ matrix: env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml" - os: osx compiler: clang - env: LLDPD_CONFIG_ARGS="--with-embedded-libevent" + env: + - MAKE_ARGS="" + - LLDPD_CONFIG_ARGS="--with-embedded-libevent" - os: osx compiler: clang if: tag =~ ^[0-9] env: + - MAKE_ARGS="" - LLDPD_UPLOAD=1 - LLDPD_CONFIG_ARGS="--prefix=/usr/local --localstatedir=/var --sysconfdir=/private/etc --with-embedded-libevent --without-snmp --without-xml" deploy: diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 98cbba85..1e40bb1f 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -149,7 +149,7 @@ endif if LIBEVENT_EMBEDDED event.c: $(top_builddir)/libevent/libevent.la $(top_builddir)/libevent/libevent.la: $(top_srcdir)/libevent/*.c $(top_srcdir)/libevent/*.h - (cd $(top_builddir)/libevent && $(MAKE) CFLAGS="$${CFLAGS} -Wno-deprecated-declarations") + (cd $(top_builddir)/libevent && $(MAKE)) endif ## systemd service file diff --git a/tests/ci/run.sh b/tests/ci/run.sh index 987fcff7..81d38da0 100755 --- a/tests/ci/run.sh +++ b/tests/ci/run.sh @@ -21,7 +21,7 @@ esac cat config.log exit 1 } -make all check CFLAGS=-Werror +make all check ${MAKE_ARGS-CFLAGS=-Werror} make distcheck case "$(uname -s)" in -- 2.39.5