2024-11-18 20:49:03 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2024-11-30 20:56:59 +08:00
|
|
|
export GOPROXY=https://mirrors.aliyun.com/goproxy/
|
2024-11-18 20:49:03 +08:00
|
|
|
export CGO_ENABLED=1
|
|
|
|
|
export GOOS=android
|
|
|
|
|
export GOARCH=amd64
|
|
|
|
|
export CC=/mnt/f/ohos-sdk-windows_linux-public/linux/native/llvm/bin/x86_64-unknown-linux-ohos-clang
|
2024-12-02 21:12:21 +08:00
|
|
|
export CGO_CFLAGS="-I/mnt/f/log-adaptor/include"
|
2024-12-02 20:44:58 +08:00
|
|
|
export CGO_LDFLAGS="-L/mnt/f/log-adaptor//dist/x86_64"
|
2024-11-18 20:49:03 +08:00
|
|
|
go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .
|