From: Vincent Bernat Date: Sat, 30 May 2020 21:52:39 +0000 (+0200) Subject: build: do not hardcode cpp invocation X-Git-Tag: 1.0.6~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1b6636359a6efa79231a18926095ace23d3b1a3;p=thirdparty%2Flldpd.git build: do not hardcode cpp invocation This needs to be overridable by using $(CPP) instead. Patch from Patrick McLean (Sony Interactive Entertainment Inc). --- diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 0d5f2f37..cc41a8a1 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -108,7 +108,7 @@ CLEANFILES += syscall-names.h syscall-names.h: $(AM_V_GEN) $(AM_V_at)echo "static const char *syscall_names[] = {" > $@ ;\ - echo "#include " | cpp -dM | grep '^#define __NR_' | \ + 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 "};" >> $@ nodist_liblldpd_la_SOURCES += syscall-names.h