From f7c4ea2122a01130d5b7df94d637b50c4bc08a8a Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 25 Oct 2024 04:58:18 +0800 Subject: [PATCH] Static linking on build script. --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 84dc539..1141d16 100644 --- a/build.py +++ b/build.py @@ -76,7 +76,8 @@ '-pipe', '-Ofast', '-s', '-std=c++17', '-fopenmp', '-mmmx', '-msse', '-msse2', '-msse3', '-msse4', '-msse4.1', '-msse4.2', '-mavx', '-mavx2', '-mfma', '-mfpmath=sse', - '-march=native', '-funroll-loops', '-ffast-math' + '-march=native', '-funroll-loops', '-ffast-math', + '-static', '-static-libgcc', '-static-libstdc++' ] if PLATFORM != 'Windows':