Better clang handling

This commit is contained in:
Luca
2018-08-30 10:05:53 +02:00
parent f948f3525f
commit 0a33e439bd
2 changed files with 7 additions and 3 deletions
+6 -1
View File
@@ -52,7 +52,12 @@ else
AC_CHECK_LIB([numa], [numa_available], [LIBNUMA="-lnuma"])
fi
if test -z `which clang`; then
CC=gcc
else
CC=clang
fi
HS_LIB=
HS_INC=
+1 -2
View File
@@ -6,7 +6,6 @@
# make Makefile
#
OS := $(shell uname -s)
#
# Installation directories
@@ -14,7 +13,7 @@ OS := $(shell uname -s)
prefix = /usr/local
libdir = ${prefix}/lib
includedir = ${prefix}/include/ndpi
CC = gcc
CC = @CC@
CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION -g
RANLIB = ranlib