internal/build:compile with c mode,when c file

This commit is contained in:
luoliwoshang
2025-06-12 11:52:41 +08:00
parent 9001cdb8f2
commit 93197e7621
20 changed files with 20 additions and 50 deletions

View File

@@ -1,9 +1,5 @@
#include <openssl/crypto.h>
extern "C" {
void opensslFree(void *ptr) {
OPENSSL_free(ptr);
}
}

View File

@@ -25,7 +25,7 @@ import (
// -----------------------------------------------------------------------------
const (
LLGoFiles = "$(pkg-config --cflags openssl): _wrap/openssl.cpp"
LLGoFiles = "$(pkg-config --cflags openssl): _wrap/openssl.c"
LLGoPackage = "link: $(pkg-config --libs openssl); -lssl -lcrypto"
)