diff options
| author | Laura Abbott <labbott@redhat.com> | 2018-07-09 20:46:01 -0400 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-07-17 12:18:05 -0400 |
| commit | 8377bd2b9ee1be35b39b5523f640a2b75ddd7c4e (patch) | |
| tree | a1d9602ba4b0fb849cd0b835ccdc63c2a6c0197a /samples | |
| parent | b90a368000abe5e015e0b045ca2ff7c2173b94c0 (diff) | |
kbuild: Rename HOST_LOADLIBES to KBUILD_HOSTLDLIBS
In preparation for enabling command line LDLIBS, re-name HOST_LOADLIBES
to KBUILD_HOSTLDLIBS as the internal use only flags. Also rename
existing usage to HOSTLDLIBS for consistency. This should not have any
visible effects.
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/bpf/Makefile | 12 | ||||
| -rw-r--r-- | samples/seccomp/Makefile | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 494ef04c56cc..bd9f6c2a808e 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile | |||
| @@ -180,12 +180,12 @@ HOSTCFLAGS_trace_event_user.o += -I$(srctree)/tools/lib/bpf/ | |||
| 180 | HOSTCFLAGS_sampleip_user.o += -I$(srctree)/tools/lib/bpf/ | 180 | HOSTCFLAGS_sampleip_user.o += -I$(srctree)/tools/lib/bpf/ |
| 181 | HOSTCFLAGS_task_fd_query_user.o += -I$(srctree)/tools/lib/bpf/ | 181 | HOSTCFLAGS_task_fd_query_user.o += -I$(srctree)/tools/lib/bpf/ |
| 182 | 182 | ||
| 183 | HOST_LOADLIBES += $(LIBBPF) -lelf | 183 | KBUILD_HOSTLDLIBS += $(LIBBPF) -lelf |
| 184 | HOSTLOADLIBES_tracex4 += -lrt | 184 | HOSTLDLIBS_tracex4 += -lrt |
| 185 | HOSTLOADLIBES_trace_output += -lrt | 185 | HOSTLDLIBS_trace_output += -lrt |
| 186 | HOSTLOADLIBES_map_perf_test += -lrt | 186 | HOSTLDLIBS_map_perf_test += -lrt |
| 187 | HOSTLOADLIBES_test_overhead += -lrt | 187 | HOSTLDLIBS_test_overhead += -lrt |
| 188 | HOSTLOADLIBES_xdpsock += -pthread | 188 | HOSTLDLIBS_xdpsock += -pthread |
| 189 | 189 | ||
| 190 | # Allows pointing LLC/CLANG to a LLVM backend with bpf support, redefine on cmdline: | 190 | # Allows pointing LLC/CLANG to a LLVM backend with bpf support, redefine on cmdline: |
| 191 | # make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang | 191 | # make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang |
diff --git a/samples/seccomp/Makefile b/samples/seccomp/Makefile index ba942e3ead89..cf34ff6b4065 100644 --- a/samples/seccomp/Makefile +++ b/samples/seccomp/Makefile | |||
| @@ -30,9 +30,9 @@ HOSTCFLAGS_bpf-direct.o += $(MFLAG) | |||
| 30 | HOSTCFLAGS_dropper.o += $(MFLAG) | 30 | HOSTCFLAGS_dropper.o += $(MFLAG) |
| 31 | HOSTCFLAGS_bpf-helper.o += $(MFLAG) | 31 | HOSTCFLAGS_bpf-helper.o += $(MFLAG) |
| 32 | HOSTCFLAGS_bpf-fancy.o += $(MFLAG) | 32 | HOSTCFLAGS_bpf-fancy.o += $(MFLAG) |
| 33 | HOSTLOADLIBES_bpf-direct += $(MFLAG) | 33 | HOSTLDLIBS_bpf-direct += $(MFLAG) |
| 34 | HOSTLOADLIBES_bpf-fancy += $(MFLAG) | 34 | HOSTLDLIBS_bpf-fancy += $(MFLAG) |
| 35 | HOSTLOADLIBES_dropper += $(MFLAG) | 35 | HOSTLDLIBS_dropper += $(MFLAG) |
| 36 | endif | 36 | endif |
| 37 | always := $(hostprogs-m) | 37 | always := $(hostprogs-m) |
| 38 | endif | 38 | endif |
