From 1872dac7f7ca6562c287f64f2c381661ac3a6981 Mon Sep 17 00:00:00 2001 From: Andreas Gieriet Date: Sat, 29 Feb 2020 23:42:32 +0100 Subject: [PATCH] add LIBS for linking -lm --- shared.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared.mk b/shared.mk index 4d937c1..7bd6acb 100644 --- a/shared.mk +++ b/shared.mk @@ -33,7 +33,7 @@ default: $(FULLTARGET) @echo "#### $< built ####" $(FULLTARGET): mkdir $(OBJECTS) Makefile - $(LINK.c) -o $@ $(OBJECTS) + $(LINK.c) -o $@ $(OBJECTS) $(LIBS) clean: $(RM) $(TARGET) $(OBJECTS) $(DEPS) $(TSTTARGET) $(TSTOBJECTS) $(TSTDEPS) $(wildcard */*~ *~ tests/*.txt) @@ -49,7 +49,7 @@ test: $(TSTTARGET) @echo "#### $< executed ####" $(TSTTARGET): $(FULLTARGET) $(TSTOBJECTS) - $(LINK.c) -o $(TSTTARGET) $(TSTOBJECTS) -lcunit -L$(TSTLIBDIR) -lsnptest + $(LINK.c) -o $(TSTTARGET) $(TSTOBJECTS) $(LIBS) -lcunit -L$(TSTLIBDIR) -lsnptest @echo "#### $@ built ####"