modify README
This commit is contained in:
parent
223e47234c
commit
dd9b88f954
11
README.md
11
README.md
@ -107,12 +107,11 @@ db load succeed: 9263
|
|||||||
|
|
||||||
### Static build
|
### Static build
|
||||||
```bash
|
```bash
|
||||||
sudo bash ./prepare.sh
|
$ sudo bash ./prepare.sh
|
||||||
|
$ SRCDIR=$(pwd)
|
||||||
export CGO_CFLAGS="-g -Wall -I./clamav-mussels-cookbook/mussels/install/include"
|
$ export CGO_CFLAGS="-g -Wall -I${SRCDIR}/clamav-mussels-cookbook/mussels/install/include"
|
||||||
export CGO_LDFLAGS="-L./clamav-mussels-cookbook/mussels/install/lib -lclamav_static -lbz2_static -lclammspack_static -lclamunrar_iface_static -lclamunrar_static -lcrypto -ljson-c -lpcre2-8 -lpcre2-posix -lssl -lxml2 -lz -lm -ldl -lstdc++"
|
$ export CGO_LDFLAGS="-L${SRCDIR}/clamav-mussels-cookbook/mussels/install/lib -lclamav_static -lbz2_static -lclammspack_static -lclamunrar_iface_static -lclamunrar_static -lcrypto -ljson-c -lpcre2-8 -lpcre2-posix -lssl -lxml2 -lz -lm -ldl -lstdc++"
|
||||||
|
$ CGO_ENABLED=1 go build --ldflags '--extldflags "-static -fpic"' main.go
|
||||||
CGO_ENABLED=1 go build --ldflags '--extldflags "-static -fpic"' main.go
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
11
README_CN.md
11
README_CN.md
@ -107,12 +107,11 @@ db load succeed: 9263
|
|||||||
|
|
||||||
### 静态编译
|
### 静态编译
|
||||||
```bash
|
```bash
|
||||||
sudo bash ./prepare.sh
|
$ sudo bash ./prepare.sh
|
||||||
|
$ SRCDIR=$(pwd)
|
||||||
export CGO_CFLAGS="-g -Wall -I./clamav-mussels-cookbook/mussels/install/include"
|
$ export CGO_CFLAGS="-g -Wall -I${SRCDIR}/clamav-mussels-cookbook/mussels/install/include"
|
||||||
export CGO_LDFLAGS="-L./clamav-mussels-cookbook/mussels/install/lib -lclamav_static -lbz2_static -lclammspack_static -lclamunrar_iface_static -lclamunrar_static -lcrypto -ljson-c -lpcre2-8 -lpcre2-posix -lssl -lxml2 -lz -lm -ldl -lstdc++"
|
$ export CGO_LDFLAGS="-L${SRCDIR}/clamav-mussels-cookbook/mussels/install/lib -lclamav_static -lbz2_static -lclammspack_static -lclamunrar_iface_static -lclamunrar_static -lcrypto -ljson-c -lpcre2-8 -lpcre2-posix -lssl -lxml2 -lz -lm -ldl -lstdc++"
|
||||||
|
$ CGO_ENABLED=1 go build --ldflags '--extldflags "-static -fpic"' main.go
|
||||||
CGO_ENABLED=1 go build --ldflags '--extldflags "-static -fpic"' main.go
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 参考
|
## 参考
|
||||||
|
Loading…
Reference in New Issue
Block a user