2 Commits

Author SHA1 Message Date
ca110us
7c10d28065 add LDFLAGS 2022-03-24 11:38:25 +08:00
ca110us
4ecab4cd20 modify README 2022-03-24 10:16:14 +08:00
4 changed files with 2 additions and 6 deletions

View File

@@ -15,8 +15,6 @@ apt-get update && apt-get install -y \
libncurses5-dev libpcre2-dev libssl-dev libxml2-dev zlib1g-dev libncurses5-dev libpcre2-dev libssl-dev libxml2-dev zlib1g-dev
python3 -m pip install --user cmake / apt-get install cmake python3 -m pip install --user cmake / apt-get install cmake
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
``` ```
Download the source from the clamav [downloads page](https://www.clamav.net/downloads) Download the source from the clamav [downloads page](https://www.clamav.net/downloads)

View File

@@ -15,8 +15,6 @@ apt-get update && apt-get install -y \
libncurses5-dev libpcre2-dev libssl-dev libxml2-dev zlib1g-dev libncurses5-dev libpcre2-dev libssl-dev libxml2-dev zlib1g-dev
python3 -m pip install --user cmake / apt-get install cmake python3 -m pip install --user cmake / apt-get install cmake
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
``` ```
从 clamav 官方下载源码 [downloads page](https://www.clamav.net/downloads) 从 clamav 官方下载源码 [downloads page](https://www.clamav.net/downloads)

View File

@@ -6,7 +6,7 @@ package goclamav
/* /*
#cgo CFLAGS: -g -Wall #cgo CFLAGS: -g -Wall
#cgo LDFLAGS: -lclamav #cgo LDFLAGS: -L/usr/local/lib/ -lclamav
#include <clamav.h> #include <clamav.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -2,7 +2,7 @@ package goclamav
/* /*
#cgo CFLAGS: -g -Wall #cgo CFLAGS: -g -Wall
#cgo LDFLAGS: -lclamav #cgo LDFLAGS: -L/usr/local/lib/ -lclamav
#include <clamav.h> #include <clamav.h>
#include <stdlib.h> #include <stdlib.h>