Skip to content

Commit

Permalink
Added library linkage for libcurl4-gnutls.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Feb 10, 2025
1 parent 7b7fb2c commit 6cd145c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ def build_proc():
'-lwinmm', '-limm32', '-lole32', '-loleaut32',
'-lversion', '-luuid', '-ldinput8', '-ldxguid',
'-lsetupapi', '-lshell32', '-lssl', '-lcrypto',
'-lcrypt32', '-lws2_32', '-luser32', '-lkernel32'
'-lcrypt32', '-lws2_32', '-luser32', '-lkernel32',
'-lcurl'
]

exe_build_args = [
Expand Down Expand Up @@ -301,7 +302,9 @@ def build_proc():
'g++', '-Iinclude', '-Istd', '-fPIC', '-D__TERMUX__',
'-shared', '-o', OUTPUT_LIBRARY + '.so',
'-std=c++23', '-Wno-deprecated-declarations'
] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files
] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + [
'-lcurl'
]

log_task("Building N8 standard library for Termux...")
subprocess.run(lib_build_args)
Expand Down Expand Up @@ -342,7 +345,7 @@ def build_proc():
'-shared', '-o', OUTPUT_LIBRARY + '.so',
'-std=c++23', '-Wno-deprecated-declarations'
] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + [
'-lglfw', '-lGL'
'-lglfw', '-lGL', '-lcurl'
]

log_task("Building N8 standard library for Linux...")
Expand Down Expand Up @@ -393,7 +396,7 @@ def build_proc():
'-L/opt/homebrew/lib', '-L/opt/homebrew/opt/openssl@3/lib',
'-std=c++23', '-Wno-deprecated-declarations'
] + ext_instructions + lib_headers + lib_source_files + cpp_files + cc_files + [
'-lcrypto', '-lglfw', '-framework', 'OpenGL'
'-lcrypto', '-lglfw', '-lcurl', '-framework', 'OpenGL'
]

log_task("Building N8 standard library for MacOS...")
Expand Down

0 comments on commit 6cd145c

Please sign in to comment.