File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ function compileYara() {
165
165
echo -ne " \n\t[+] Bootstrap: ${GREEN} OK ${RESET} "
166
166
fi
167
167
168
- ERROR=$( ./configure --without-crypto --disable-shared --enable-static --prefix=" ${prefix} " 2>&1 > /dev/null)
168
+ ERROR=$( ./configure CC=gcc --without-crypto --disable-shared --enable-static --prefix=" ${prefix} " 2>&1 > /dev/null)
169
169
if [ $? -ne 0 ]; then
170
170
echo -ne " \n\t${RED} [-] Configure error${RESET} "
171
171
echo ${ERROR}
@@ -206,7 +206,7 @@ function compileLibpcap() {
206
206
echo -n " [*] Configuring and compiling Libpcap for ${os} /${arch} ..."
207
207
cd ${LIBPCAP_PATH}
208
208
209
- ERROR=$( ./configure --disable-shared --prefix=${prefix} 2>&1 > /dev/null)
209
+ ERROR=$( ./configure CC=gcc --disable-shared --prefix=${prefix} 2>&1 > /dev/null)
210
210
if [ $? -ne 0 ]; then
211
211
echo -ne " \n\t${RED} [-] Configure error${RESET} "
212
212
echo ${ERROR}
@@ -255,7 +255,7 @@ GO_LDFLAGS="-w -s -X 'github.com/mole-ids/mole/cmd.AppName=${APPNAME}' -X 'githu
255
255
256
256
echo -n " [*] Compiling Mole IDS for Darwin amd64..."
257
257
ERROR=$( CGO_ENABLED=1 \
258
- \
258
+ CC=gcc \
259
259
PKG_CONFIG_PATH=" ${YARA_64_PREFIX} /lib/pkgconfig:${LIBPCAP_64_PREFIX} /lib/pkgconfig:$( brew --prefix openssl) /lib/pkgconfig" \
260
260
go build -race -ldflags=" ${GO_LDFLAGS} " -o build/mole_${GOOS} _${GOARCH} main.go 2>&1 > /dev/null)
261
261
if [ $? -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments