From 2d5840da8d3844269651450a396dcff428091248 Mon Sep 17 00:00:00 2001 From: Avril Date: Mon, 14 Mar 2022 22:42:17 +0000 Subject: [PATCH] TODO: make `SHARED`"d default "yes" on `debug` builds only and have it have to be explicitly set to "no" to add `CFLAGS+=--static`. For release builds keep the default "no". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fortune for sink's current commit: Future small blessing − 末小吉 --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 2e3dc7b..a237b02 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,7 @@ DEBUG_LDFLASG+=-Wl,-g CFLAGS += $(COMMON_FLAGS) --std=gnu2x LDFLAGS += +#TODO: Find a way to make this check `ifeq SHARED,no` on debug target ifneq ($(SHARED),yes) CFLAGS+=--static endif