diff --git a/Makefile b/Makefile
index 12ff4b45e4b043ae5c93629b502e42e8396b2b24..4dc668c893cfeb03020f992bf92c7ae46953d299 100644
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,11 @@ include $(OUTDIR)/cppcache
gmni: $(gmni_objects)
@printf 'CCLD\t$@\n'
- @$(CC) $(LDFLAGS) $(LIBS) -o $@ $(gmni_objects)
+ $(CC) $(LDFLAGS) -o $@ $(gmni_objects) $(LIBS)
gmnlm: $(gmnlm_objects)
@printf 'CCLD\t$@\n'
- @$(CC) $(LDFLAGS) $(LIBS) -o $@ $(gmnlm_objects)
+ @$(CC) $(LDFLAGS) -o $@ $(gmnlm_objects) $(LIBS)
doc/gmni.1: doc/gmni.scd
doc/gmnlm.1: doc/gmnlm.scd