From 2b9b5446d8c3b92f415348804c8fe7ab8aa22231 Mon Sep 17 00:00:00 2001 From: John Ferlito Date: Sun, 12 Aug 2018 09:19:59 +1000 Subject: [PATCH] Move -lm to end of command On Ubuntu at least it wouldn't link unless -lm was the last argument --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6b19c03..e29e199 100644 --- a/Makefile +++ b/Makefile @@ -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"