Added support for partial static linking on OSX

This commit is contained in:
aristocratos 2021-11-16 07:16:55 +01:00
parent d721c4b135
commit cb6ad141eb
2 changed files with 6 additions and 1 deletions

View file

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

View file

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