From 0bad4520d84976f9c29f1b90fb08057063fc6735 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Sun, 23 Oct 2022 12:06:54 +0200 Subject: [PATCH] - optimized compilation for linux added --- opti.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 opti.sh diff --git a/opti.sh b/opti.sh new file mode 100755 index 0000000..0334cb5 --- /dev/null +++ b/opti.sh @@ -0,0 +1,4 @@ +#!/bin/bash +g++ *.cpp ./lua/*.c -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -lSDL2 -o mini +strip -s -R .comment -R .gnu.version --strip-unneeded mini +