mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-05 17:30:15 +08:00
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 <luca.boccassi@microsoft.com>
This commit is contained in:
1 parent
93bc1d03f4
commit
e31e1a5a3f
1 file changed
+1
-1
+1
-1
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user