projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
793a349
)
samples/bpf: Provide C/LDFLAGS to libbpf
author
Ivan Khoronzhuk
<ivan.khoronzhuk@linaro.org>
Fri, 11 Oct 2019 00:28:06 +0000
(
03:28
+0300)
committer
Alexei Starovoitov
<ast@kernel.org>
Sat, 12 Oct 2019 23:08:59 +0000
(16:08 -0700)
In order to build lib using C/LD flags of target arch, provide them
to libbpf make.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link:
https://lore.kernel.org/bpf/20191011002808.28206-14-ivan.khoronzhuk@linaro.org
samples/bpf/Makefile
patch
|
blob
|
history
diff --git
a/samples/bpf/Makefile
b/samples/bpf/Makefile
index a6c33496e8ca1333e9a3c88d837a7b7ea0829c80..6b161326ac6727cf1fdbe20237d7733b70e16ece 100644
(file)
--- a/
samples/bpf/Makefile
+++ b/
samples/bpf/Makefile
@@
-248,7
+248,8
@@
clean:
$(LIBBPF): FORCE
# Fix up variables inherited from Kbuild that tools/ build system won't like
- $(MAKE) -C $(dir $@) RM='rm -rf' LDFLAGS= srctree=$(BPF_SAMPLES_PATH)/../../ O=
+ $(MAKE) -C $(dir $@) RM='rm -rf' EXTRA_CFLAGS="$(TPROGS_CFLAGS)" \
+ LDFLAGS=$(TPROGS_LDFLAGS) srctree=$(BPF_SAMPLES_PATH)/../../ O=
$(obj)/syscall_nrs.h: $(obj)/syscall_nrs.s FORCE
$(call filechk,offsets,__SYSCALL_NRS_H__)