commit 2f83d76ccae9a70d9c20518c2d5d1ba92d3f92c9 parent 674157bbc0473c9662e512487cf1e0fa91e6d325 Author: amrfti <andrew@kloet.net> Date: Thu, 22 May 2025 22:11:47 -0400 gcc flag fun Diffstat:
| M | Makefile | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,7 +1,7 @@ # Compiler and flags CXX = g++ -CXXFLAGS = -std=c++17 -Wall -Wextra -O3 -LDFLAGS = -lncurses -ltinfo +CXXFLAGS = -std=c++17 -Wall -Wextra -O3 --function-sections -fdata-sections -flto -march=native -ffast-math +LDFLAGS = -lncurses -ltinfo -Wl,--gc-sections -flto -Wl,-O2 # Directories SRC_DIR = src