aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-30 11:08:19 +0000
committergingerBill <gingerBill@users.noreply.github.com>2025-10-30 11:08:19 +0000
commit9c9536332d32f3196bc8ac845248f9cc7d937976 (patch)
tree585a7e0d06a059e5cbdee45b75ecb14f66c686e8 /vendor
parent35a28053b8779ea7ab9845c31ad52fd55888667a (diff)
Improve foreign imports for `vendor:curl`
Diffstat (limited to 'vendor')
-rw-r--r--vendor/curl/curl.odin27
1 files changed, 26 insertions, 1 deletions
diff --git a/vendor/curl/curl.odin b/vendor/curl/curl.odin
index 88baedd89..dcc30c109 100644
--- a/vendor/curl/curl.odin
+++ b/vendor/curl/curl.odin
@@ -3,9 +3,34 @@ package vendor_curl
import c "core:c/libc"
when ODIN_OS == .Windows {
+ @(export, extra_linker_flags="/NODEFAULTLIB:libcmt")
+ foreign import lib {
+ "lib/libcurl_a.lib",
+ "system:Advapi32.lib",
+ "system:Crypt32.lib",
+ "system:Normaliz.lib",
+ "system:Secur32.lib",
+ "system:Wldap32.lib",
+ "system:Ws2_32.lib",
+ }
+} else when ODIN_OS == .Linux {
+ @(export)
+ foreign import lib {
+ "system:curl",
+ "system:mbedtls",
+ "system:mbedx509",
+ "system:mbedcrypto",
+ "system:z",
+ }
+} else when ODIN_OS == .Darwin {
@(export)
foreign import lib {
- "libcurl_a.lib",
+ "system:curl",
+ "system:mbedtls",
+ "system:mbedx509",
+ "system:mbedcrypto",
+ "system:z",
+ "system:SystemConfiguration.framework",
}
}