mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-09 10:09:07 +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:
committed by
Andrii Nakryiko
parent
93bc1d03f4
commit
e31e1a5a3f
@@ -63,7 +63,7 @@ $(OBJDIR)/libbpf.pc:
|
|||||||
< libbpf.pc.template > $@
|
< libbpf.pc.template > $@
|
||||||
|
|
||||||
$(OBJDIR)/%.o: %.c
|
$(OBJDIR)/%.o: %.c
|
||||||
$(CC) $(ALL_CFLAGS) -c $< -o $@
|
$(CC) $(ALL_CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
define do_install
|
define do_install
|
||||||
if [ ! -d '$(DESTDIR)$2' ]; then \
|
if [ ! -d '$(DESTDIR)$2' ]; then \
|
||||||
|
|||||||
Reference in New Issue
Block a user