From 246701fe22bd2f2def6816e730b8b46f427c8404 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 12 Oct 2013 18:05:06 +0200 Subject: [PATCH] seccomp: do not ship `syscall-names.h` `syscall-names.h` is generated at build-time. Since automake will put anything in `*_SOURCES` in the dist tarball, we tell it to not do that. --- src/daemon/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 7e405245..a18878a6 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -7,6 +7,7 @@ dist_man_MANS = lldpd.8 noinst_LTLIBRARIES = liblldpd.la ## Convenience library for lldpd and tests +nodist_liblldpd_la_SOURCES = liblldpd_la_SOURCES = \ frame.h frame.c \ lldp.c lldp-tlv.h \ @@ -99,7 +100,8 @@ syscall-names.h: echo "#include " | cpp -dM | grep '^#define __NR_' | \ LC_ALL=C sed -r -n -e 's/^\#define[ \t]+__NR_([a-z0-9_]+)[ \t]+([0-9]+)(.*)/ [\2] = "\1",/p' >> $@ ;\ echo "};" >> $@ -liblldpd_la_SOURCES += priv-seccomp.c syscall-names.h +nodist_liblldpd_la_SOURCES += syscall-names.h +liblldpd_la_SOURCES += priv-seccomp.c liblldpd_la_CFLAGS += @SECCOMP_CFLAGS@ liblldpd_la_LIBADD += @SECCOMP_LIBS@ endif -- 2.39.5