From a9bc69381404b2dc9f92f47e7017b58ca19fa55b Mon Sep 17 00:00:00 2001 From: Andreas Gieriet Date: Sat, 22 Feb 2020 01:52:51 +0100 Subject: [PATCH] fix shared makefile regarding static linking and proper test target linking --- shared.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared.mk b/shared.mk index 37e977c..4d937c1 100644 --- a/shared.mk +++ b/shared.mk @@ -23,7 +23,7 @@ FULLTARGET := $(CURDIR)/$(TARGET) CC = gcc CFLAGS = -std=c99 -Wall -pedantic -g CPPFLAGS = -MD -Isrc -Itests -I$(TSTINCDIR) -DTARGET=$(FULLTARGET) -LDFLAGS = +LDFLAGS = -static # targets which get always visited (without checking any up-to-date state) .PHONY: default clean test doc install mkdir @@ -49,7 +49,7 @@ test: $(TSTTARGET) @echo "#### $< executed ####" $(TSTTARGET): $(FULLTARGET) $(TSTOBJECTS) - $(LINK.c) -o $(TSTTARGET) $(TSTOBJECTS) $(FULLTARGET) -lcunit -L$(TSTLIBDIR) -lsnptest + $(LINK.c) -o $(TSTTARGET) $(TSTOBJECTS) -lcunit -L$(TSTLIBDIR) -lsnptest @echo "#### $@ built ####"