shithub: cstory

Download patch

ref: 326366815678f01a1d8673cc15984436ced15419
parent: 87b296c51336cdf0bf80d8c4e9bbc71ecce2c5de
parent: 867af9f090a0c7bcf970d8c891e483bf0a3d74a6
author: Clownacy <[email protected]>
date: Wed Jan 22 18:35:49 EST 2020

Merge branch 'accurate' into portable

--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,10 @@
   DOCONFIG_FILENAME_DEF = DoConfig_debug$(EXE_EXTENSION)
 endif
 
+ifeq ($(LTO), 1)
+  ALL_CXXFLAGS += -flto
+endif
+
 ifeq ($(JAPANESE), 1)
   DATA_DIRECTORY = $(ASSETS_DIRECTORY)/data_jp
 
--- a/README.md
+++ b/README.md
@@ -93,6 +93,7 @@
 --------|--------
 `RELEASE=1` | Compile a release build (optimised, stripped, etc.)
 `STATIC=1` | Produce a statically-linked executable (good for Windows builds, so you don't need to bundle DLL files)
+`LTO=1` | Enable link-time optimisation
 `JAPANESE=1` | Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation)
 `FIX_BUGS=1` | Fix various bugs in the game
 `WINDOWS=1` | Build for Windows