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).