🎨 Do not strip kernel lib debug symbol table for HarmonyOS

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-29 21:47:20 +08:00
parent cd2eeb69bb
commit 409b2062a3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -24,4 +24,5 @@ export GOARCH=arm64
export CGO_CFLAGS="-I${LOG_ADAPTOR_HOME}/include -g -O2 `$LLVMCONFIG --cflags` --target=aarch64-linux-ohos --sysroot=$OHOS_NDK_HOME/native/sysroot"
export CGO_LDFLAGS="--target=aarch64-linux-ohos -fuse-ld=lld -L${LOG_ADAPTOR_HOME}/dist/arm64-v8a"
go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .
#go build --tags fts5 -ldflags "-s -w" -buildmode=c-shared -v -o libkernel.so .
go build --tags fts5 -buildmode=c-shared -v -o libkernel.so .