Better clang handling
This commit is contained in:
+6
-1
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user