Skip to content

Commit 3e26a9e

Browse files
committed
Bump version v0.1.2
1 parent 35b36dc commit 3e26a9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis/macosx-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function compileYara() {
165165
echo -ne "\n\t[+] Bootstrap: ${GREEN} OK ${RESET}"
166166
fi
167167

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)
169169
if [ $? -ne 0 ]; then
170170
echo -ne "\n\t${RED}[-] Configure error${RESET}"
171171
echo ${ERROR}
@@ -206,7 +206,7 @@ function compileLibpcap() {
206206
echo -n "[*] Configuring and compiling Libpcap for ${os}/${arch}..."
207207
cd ${LIBPCAP_PATH}
208208

209-
ERROR=$(./configure --disable-shared --prefix=${prefix} 2>&1 >/dev/null)
209+
ERROR=$(./configure CC=gcc --disable-shared --prefix=${prefix} 2>&1 >/dev/null)
210210
if [ $? -ne 0 ]; then
211211
echo -ne "\n\t${RED}[-] Configure error${RESET}"
212212
echo ${ERROR}
@@ -255,7 +255,7 @@ GO_LDFLAGS="-w -s -X 'github.com/mole-ids/mole/cmd.AppName=${APPNAME}' -X 'githu
255255

256256
echo -n "[*] Compiling Mole IDS for Darwin amd64..."
257257
ERROR=$(CGO_ENABLED=1 \
258-
\
258+
CC=gcc \
259259
PKG_CONFIG_PATH="${YARA_64_PREFIX}/lib/pkgconfig:${LIBPCAP_64_PREFIX}/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" \
260260
go build -race -ldflags="${GO_LDFLAGS}" -o build/mole_${GOOS}_${GOARCH} main.go 2>&1 >/dev/null)
261261
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)