Skip to content

Commit

Permalink
Merge pull request #8 from gospo/master
Browse files Browse the repository at this point in the history
samples/bpf: fix link issue with older gcc
  • Loading branch information
netoptimizer committed Feb 22, 2017
2 parents 61676bc + 9deeb5a commit db6bf73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/samples/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ $(KERN_OBJECTS): %.o: %.c
$(LLC) -march=bpf -filetype=obj -o $@ ${@:.o=.ll}

$(TARGETS): %: %_user.c $(OBJECTS) Makefile
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ $<
$(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -o $@ $<

$(CMDLINE_TOOLS): %: %.c $(OBJECTS) Makefile $(COMMON_H)
$(CC) -g $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ $<
$(CC) -g $(CFLAGS) $(OBJECTS) $(LDFLAGS) -o $@ $<

0 comments on commit db6bf73

Please sign in to comment.