From 1795d34a1f61d61d551e8eaa517abf097878c00e Mon Sep 17 00:00:00 2001 From: Unknown User <52547845+unknown-v@users.noreply.github.com> Date: Fri, 18 Oct 2019 19:22:47 +0200 Subject: [PATCH] Makefile: use LDFLAGS --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3623d2d066..04ff4beb28 100644 --- a/Makefile +++ b/Makefile @@ -18,11 +18,11 @@ endif all: fresh_vc fresh_tcc ifdef WIN32 - $(CC) -std=c99 -w -o v0.exe vc/v_win.c + $(CC) -std=c99 -w -o v0.exe vc/v_win.c $(LDFLAGS) ./v0.exe -o v.exe v.v rm -f v0.exe else - $(CC) -std=gnu11 -w -o v vc/v.c -lm + $(CC) -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm @(VC_V=`./v version | cut -f 3 -d " "`; \ V_V=`git rev-parse --short HEAD`; \ if [ $$VC_V != $$V_V ]; then \