From: Vincent Bernat Date: Mon, 9 Apr 2018 05:26:18 +0000 (+0200) Subject: build: try another way to circumvent macOS warning in libevent X-Git-Tag: 1.0.1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c560c1ca38c61d03f01050f777b79578faa15e73;p=thirdparty%2Flldpd.git build: try another way to circumvent macOS warning in libevent --- diff --git a/m4/libevent.m4 b/m4/libevent.m4 index e738da46..275e5a56 100644 --- a/m4/libevent.m4 +++ b/m4/libevent.m4 @@ -63,7 +63,6 @@ AC_DEFUN([lldp_CHECK_LIBEVENT], [ libevent_configure_args="$libevent_configure_args --disable-shared" libevent_configure_args="$libevent_configure_args --with-pic" libevent_configure_args="$libevent_configure_args --enable-static" - libevent_configure_args="$libevent_configure_args CFLAGS=-Wno-deprecated-declarations" lldp_CONFIG_SUBDIRS([libevent], [$libevent_configure_args]) AM_CONDITIONAL([LIBEVENT_EMBEDDED], [test x"$LIBEVENT_EMBEDDED" != x]) diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 1e40bb1f..9c00ca13 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)) + (cd $(top_builddir)/libevent && $(MAKE) CFLAGS=-Wno-deprecated-declarations) endif ## systemd service file