Skip to content

Commit

Permalink
libbpf-tool: don't ignore LDFLAGS
Browse files Browse the repository at this point in the history
Packagers need to be able set linker options according to their
distribution guidelines.
  • Loading branch information
jeromemarchand authored and yonghong-song committed Jun 3, 2021
1 parent 6c789d9 commit 09404eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbpf-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $(OUTPUT) $(OUTPUT)/libbpf:

$(APPS): %: $(OUTPUT)/%.o $(LIBBPF_OBJ) $(COMMON_OBJ) | $(OUTPUT)
$(call msg,BINARY,$@)
$(Q)$(CC) $(CFLAGS) $^ -lelf -lz -o $@
$(Q)$(CC) $(CFLAGS) $^ $(LDFLAGS) -lelf -lz -o $@

$(patsubst %,$(OUTPUT)/%.o,$(APPS)): %.o: %.skel.h

Expand Down

0 comments on commit 09404eb

Please sign in to comment.