From d8a6a2bfcc0fba0572510a5712d445c96090ed4b Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Mon, 28 Oct 2024 12:32:04 +0800 Subject: [PATCH] Remove static linking for Linux and Darwin platform. --- build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 73245cc..2f253b1 100644 --- a/build.py +++ b/build.py @@ -200,7 +200,7 @@ def download_libui(): ] exe_build_args += ['-o', OUTPUT_EXECUTABLE + '-openmp'] lib_build_args = [ - 'g++', '-static', '-static-libgcc', '-Iinclude', + 'g++', '-Iinclude', '-Ilib', '-I' + os.path.join(TEMP_DIR, 'include'), '-fPIC', '-shared', '-o', OUTPUT_LIBRARY + '.so', OUTPUT_CORE, os.path.join(OUT_DIR, 'libui.so') @@ -258,8 +258,8 @@ def download_libui(): exe_build_args += ['-o', OUTPUT_EXECUTABLE + '-openmp'] lib_build_args = [ - '/opt/homebrew/opt/llvm/bin/clang++', '-Iinclude', '-static', - '-static-libgcc', '-Ilib', '-I' + os.path.join(TEMP_DIR, 'include'), + '/opt/homebrew/opt/llvm/bin/clang++', '-Iinclude', + '-Ilib', '-I' + os.path.join(TEMP_DIR, 'include'), '-shared', '-o', OUTPUT_LIBRARY + '.dylib', OUTPUT_CORE, os.path.join(OUT_DIR, 'libui.dylib') ] + cc_files