Skip to content

Commit

Permalink
Remove static linking for Linux and Darwin platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Oct 28, 2024
1 parent 496f0a5 commit d8a6a2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d8a6a2b

Please sign in to comment.