tMakefile: fix linker argument order - numtools - perform numerical operations on vectors and matrices in unix pipes
(HTM) git clone git://src.adamsgaard.dk/numtools
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f5300d87504c05843deb19e06fda765e5b61c9b0
(DIR) parent 76779d98f45ccb5273322738fe7debe7dca1385e
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 22 Sep 2023 11:16:56 +0200
Makefile: fix linker argument order
Diffstat:
M Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -42,7 +42,7 @@ LIB = ${COMPATOBJ}
LIBS = -lm
_CFLAGS = ${CFLAGS} ${INCS} -DVERSION=\"${VERSION}\"
-_LDFLAGS = ${LDFLAGS} ${LIBS}
+_LDFLAGS = ${LDFLAGS}
_CPPFLAGS = ${CPPFLAGS} -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
MAN1 = ${BIN:=.1} ${SCRIPTS:=.1}
t@@ -69,7 +69,7 @@ sum: sum.o
transpose: transpose.o
${BIN}: ${LIB} ${OBJ}
- ${CC} ${_LDFLAGS} -o $@ ${@:=.o} ${OBJ}
+ ${CC} ${_LDFLAGS} -o $@ ${@:=.o} ${OBJ} ${LIBS}
.c.o:
${CC} ${_CFLAGS} ${_CPPFLAGS} -o $@ -c $<