Skip to content

Commit

Permalink
Makefile: Honor LDFLAGS variable
Browse files Browse the repository at this point in the history
Passing $(LDFLAGS) to the linker is important for cross-compile environments.
OpenEmbedded builds will display QA errors like this:
... QA Issue: No GNU_HASH in the elf binary ... [ldflags]

Signed-off-by: Mike Looijmans <[email protected]>
  • Loading branch information
MikeLooijmans committed Sep 28, 2016
1 parent 1a3ea62 commit 8b75a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hdrs = $(wildcard *.h)

phytool: $(objs)
@printf " CC $(subst $(ROOTDIR)/,,$(shell pwd)/$@)\n"
@$(CC) $(LDLIBS) -o $@ $^
@$(CC) $(LDFLAGS) $(LDLIBS) -o $@ $^

all: phytool

Expand Down

0 comments on commit 8b75a5e

Please sign in to comment.