From cb6ad141eb0523201ef27a5ea5dbf27ec5b5eb53 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Tue, 16 Nov 2021 07:16:55 +0100 Subject: [PATCH] Added support for partial static linking on OSX --- Makefile | 5 ++++- README.md | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 396b474..c207094 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,10 @@ ifneq ($(PLATFORM) $(ARCH),macos arm64) endif ifeq ($(STATIC),true) - override ADDFLAGS += -DSTATIC_BUILD -static -static-libgcc -static-libstdc++ -Wl,--fatal-warnings + override ADDFLAGS += -static-libgcc -static-libstdc++ + ifneq ($(PLATFORM),macos) + override ADDFLAGS += -DSTATIC_BUILD -static -Wl,--fatal-warnings + endif endif ifeq ($(STRIP),true) diff --git a/README.md b/README.md index 18eb725..c0f8ec8 100644 --- a/README.md +++ b/README.md @@ -390,6 +390,8 @@ Also needs a UTF8 locale and a font that covers: 3. **Compile** + Append `STATIC=true` to `make` command for static compilation (only libgcc and libstdc++ will be static!). + Append `QUIET=true` for less verbose output. Append `STRIP=true` to force stripping of debug symbols (adds `-s` linker flag).