Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTServ committed Aug 26, 2023
1 parent b72f38a commit e70d108
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/buildso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
echo "building linux/android so file"
#linux和Android共用动态链接库
CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go build -tags linux -ldflags=-w -trimpath -v -o "build/amd64/linux/gateway.so" -buildmode c-shared
CGO_ENABLED=1 GOARCH=arm64 GOOS=linux go build -tags linux -ldflags=-w -trimpath -v -o "build/arm64/linux/gateway.so" -buildmode c-shared
#sudo apt-get install binutils-aarch64-linux-gnu
CGO_ENABLED=1 GOARCH=arm64 GOOS=linux CC=aarch64-linux-gnu-gcc && \
CXX=aarch64-linux-gnu-g++ AR=aarch64-linux-gnu-ar go build -tags linux -ldflags=-w -trimpath -v -o "build/arm64/linux/gateway.so" -buildmode c-shared

0 comments on commit e70d108

Please sign in to comment.