shithub: femtolisp

Download patch

ref: 9607be7406fb7c452bd13b92ea2c8178083c189a
parent: 0d7523a6c8d8d4e9f204285ba5c81c21e17e0938
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Mar 20 11:26:56 EDT 2023

Makefile: fix cmdline LDFLAGS

--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,6 @@
 CFLAGS?=-O2 -g
 CFLAGS+=-Wall -Wextra -falign-functions -Wno-strict-aliasing -std=c99 -D_DEFAULT_SOURCE
 LDFLAGS?=
-LDFLAGS+=${LLT} -lm
 
 OBJS=\
 	flmain.o\
@@ -28,7 +27,7 @@
 	cd test && ../$(TARG) unittest.lsp
 
 ${TARG}: ${OBJS} ${LLT}
-	${CC} -o $@ ${OBJS} ${LDFLAGS}
+	${CC} -o $@ ${OBJS} ${LDFLAGS} ${LLT} -lm
 
 .SUFFIXES: .c .o
 .c.o: