]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: try another way to circumvent macOS warning in libevent
authorVincent Bernat <vincent@bernat.im>
Mon, 9 Apr 2018 05:26:18 +0000 (07:26 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 9 Apr 2018 05:26:18 +0000 (07:26 +0200)
m4/libevent.m4
src/daemon/Makefile.am

index e738da4616d9acbbdb542b4139e2ef56d7c322ed..275e5a5682f113a18e384ef3aaa5b2979e29c5dd 100644 (file)
@@ -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])
index 1e40bb1f2d9c2065ea44e04d69347fee8d508fc3..9c00ca132ce255d0c18907bac37eba16f645637a 100644 (file)
@@ -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