diff --git a/kernel/harmony/build-win.sh b/kernel/harmony/build-win.sh index 329b66bff..9f58d3850 100755 --- a/kernel/harmony/build-win.sh +++ b/kernel/harmony/build-win.sh @@ -5,4 +5,6 @@ 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 +export CGO_FLAGS = "-I/mnt/f/log-adaptor/include" +export CGO_LDFLAGS = "-L/mnt/f/log-adaptor//dist/x86_64" go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so . diff --git a/kernel/harmony/build.sh b/kernel/harmony/build.sh index 5b229fa1c..20a8622d3 100755 --- a/kernel/harmony/build.sh +++ b/kernel/harmony/build.sh @@ -5,4 +5,6 @@ export CGO_ENABLED=1 export GOOS=android export GOARCH=arm64 export CC=/mnt/f/ohos-sdk-windows_linux-public/linux/native/llvm/bin/aarch64-unknown-linux-ohos-clang +export CGO_FLAGS = "-I/mnt/f/log-adaptor/include" +export CGO_LDFLAGS = "-L/mnt/f/log-adaptor//dist/arm64-v8a" go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .