]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Makefile: put libraries at the end when linking
authorSimon Schubert <2@0x2c.org>
Mon, 14 Nov 2011 22:01:25 +0000 (23:01 +0100)
committerSimon Schubert <2@0x2c.org>
Mon, 14 Nov 2011 22:01:25 +0000 (23:01 +0100)
With some linker configurations, libraries will have to be specified
after the objects that require them, otherwise the linker will not
include these libraries, leading to a link error.

Makefile

index 266d0b4a0be14defd83447ffab68aacbff4185d0..0ae0db41a49936c0acd019a8462f9625ce3b1e8b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,7 @@ aliases_scan.c: aliases_scan.l
        ${CC} ${CFLAGS} ${CPPFLAGS} -include dfcompat.h -o $@ -c $<
 
 dma: ${OBJS}
-       ${CC} ${LDFLAGS} ${LDADD} -o $@ ${OBJS}
+       ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD}
 
 
 dch: