From: Simon Schubert <2@0x2c.org> Date: Mon, 14 Nov 2011 22:01:25 +0000 (+0100) Subject: Makefile: put libraries at the end when linking X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6424680aa3c46904affb7e27d027b1d0fae0ade;p=people%2Fms%2Fdma.git Makefile: put libraries at the end when linking 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. --- diff --git a/Makefile b/Makefile index 266d0b4..0ae0db4 100644 --- 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: