Move Linker flag to the back
Closed this issue · 1 comments
circleous commented
This is to support new compiler quirks where linker flags need to be placed at the back. I forgot the link to the mailing list archive for reference, but this fixes the make error.
diff --git a/.config/i3blocks/weather/Makefile b/.config/i3blocks/weather/Makefile
index ecc19d4..802e7bf 100644
--- a/.config/i3blocks/weather/Makefile
+++ b/.config/i3blocks/weather/Makefile
@@ -5,7 +5,7 @@ LINKFLAGS = -lrt
.PHONY: clean
weather_signaler: weather_signaler.c
- $(CC) $(CFLAGS) $(LINKFLAGS) $< -o weather_signaler
+ $(CC) $(CFLAGS) $< -o weather_signaler $(LINKFLAGS)
clean:
@rm -v weather_signaler