bpf: Replace deprecated -target with --target= for Clang
[sfrench/cifs-2.6.git] / tools / bpf / bpftool / Makefile
index 681fbcc5ed5047ffc33623b463d538f2f7538598..e9154ace80fff6550168b5c61d49c790eeaa115f 100644 (file)
@@ -216,7 +216,7 @@ $(OUTPUT)%.bpf.o: skeleton/%.bpf.c $(OUTPUT)vmlinux.h $(LIBBPF_BOOTSTRAP)
                -I$(srctree)/tools/include/uapi/ \
                -I$(LIBBPF_BOOTSTRAP_INCLUDE) \
                -g -O2 -Wall -fno-stack-protector \
-               -target bpf -c $< -o $@
+               --target=bpf -c $< -o $@
        $(Q)$(LLVM_STRIP) -g $@
 
 $(OUTPUT)%.skel.h: $(OUTPUT)%.bpf.o $(BPFTOOL_BOOTSTRAP)