Skip to content

Commit

Permalink
Move -lm to end of command
Browse files Browse the repository at this point in the history
On Ubuntu at least it wouldn't link unless -lm was the last argument
  • Loading branch information
johnf committed Aug 11, 2018
1 parent 9c97427 commit 2b9b544
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 @@ -15,7 +15,7 @@ all: \
-o $@ -c $<

intel-undervolt: config.o main.o
$(CC) -lm $(LDFLAGS) -o $@ $^
$(CC) $(LDFLAGS) -o $@ $^ -lm

install: all
install -Dm755 'intel-undervolt' "$(DESTDIR)$(BINDIR)/intel-undervolt"
Expand Down

0 comments on commit 2b9b544

Please sign in to comment.