From 8d33e939b820fef824c84a92dd6affcd455bbf55 Mon Sep 17 00:00:00 2001 From: Catalin Toda Date: Wed, 7 Jun 2023 03:15:18 -0700 Subject: [PATCH] --static should create a static binary #1107 --- src/Makefile.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index 33ac592f4f..7099027f01 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -136,9 +136,10 @@ CFLAGS-$(DEBUG) += -fsanitize=address -fno-omit-frame-pointer -fsanitize=leak -f ifeq ($(STATIC),1) -LDFLAGS+=$(addsuffix .a,$(addprefix -l:lib,$(LIBS))) + CFLAGS+=-static + LDFLAGS+=$(addsuffix .a,$(addprefix -l:lib,$(LIBS))) else -LDFLAGS+=$(addprefix -l,$(LIBS)) + LDFLAGS+=$(addprefix -l,$(LIBS)) endif SOURCES+=$(SOURCES-1)