From b08a5af741b8e96349214e71c66b434e2f2b26e5 Mon Sep 17 00:00:00 2001 From: Roi Agai Date: Wed, 6 Mar 2024 16:33:24 +0200 Subject: [PATCH] optional static build --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 782737d8c..9706bf4bd 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,12 @@ build/$(LAUNCHER): src/launcher/* src/jattach/* src/fdtransfer.h strip $@ PROFILER_FLAGS=-static-libgcc + ifeq ($(OS_TAG),linux-musl) + STATIC_LIBSTDCPP=1 +endif + +ifeq ($(STATIC_LIBSTDCPP),1) PROFILER_FLAGS+= -static-libstdc++ endif