From 1dfe3fa6ca702a4cba7fe3ac621bb3a18391df55 Mon Sep 17 00:00:00 2001 From: Guy Shimko Date: Tue, 24 Dec 2024 21:16:27 +0200 Subject: [PATCH 1/2] Reduce static-gdb size by reducing python size Updated the python submodule. The newer submodule will create smaller static python libraries. --- src/submodule_packages/cpython-static | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/submodule_packages/cpython-static b/src/submodule_packages/cpython-static index d734d02..7ffd428 160000 --- a/src/submodule_packages/cpython-static +++ b/src/submodule_packages/cpython-static @@ -1 +1 @@ -Subproject commit d734d02f4ce9ca77aa6708bf5bd16429e147e9ef +Subproject commit 7ffd428d5b945b3baf5d5f6f856bdeb3bc8377a9 From aa49ade8d4332a03b12a4af58b88cb30c9029729 Mon Sep 17 00:00:00 2001 From: Guy Shimko Date: Tue, 24 Dec 2024 21:35:11 +0200 Subject: [PATCH 2/2] Strip the executables in order to reduce their size --- src/compilation/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compilation/build.sh b/src/compilation/build.sh index 78181a4..24f7672 100755 --- a/src/compilation/build.sh +++ b/src/compilation/build.sh @@ -52,6 +52,9 @@ function set_compliation_variables() { export CFLAGS="-O2" export CXXFLAGS="-O2" + + # Strip the binary to reduce it's size. + export LDFLAGS="-s" } function set_ncurses_link_variables() {