From e31e1a5a3f15b2f2808ebc1dc2702d98775b4b45 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 28 Mar 2019 19:33:17 +0000 Subject: [PATCH] Makefile: pass CPPFLAGS to the compiler Distro tools like dpkg-buildpackage use the preprocessor flags to pass important flags, like hardening features. Pass CPPFLAGS to CC. Signed-off-by: Luca Boccassi --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index fab4c6f..51b52e8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -63,7 +63,7 @@ $(OBJDIR)/libbpf.pc: < libbpf.pc.template > $@ $(OBJDIR)/%.o: %.c - $(CC) $(ALL_CFLAGS) -c $< -o $@ + $(CC) $(ALL_CFLAGS) $(CPPFLAGS) -c $< -o $@ define do_install if [ ! -d '$(DESTDIR)$2' ]; then \