Better clang handling
This commit is contained in:
+6
-1
@@ -52,7 +52,12 @@ else
|
|||||||
AC_CHECK_LIB([numa], [numa_available], [LIBNUMA="-lnuma"])
|
AC_CHECK_LIB([numa], [numa_available], [LIBNUMA="-lnuma"])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -z `which clang`; then
|
||||||
|
CC=gcc
|
||||||
|
else
|
||||||
|
CC=clang
|
||||||
|
fi
|
||||||
|
|
||||||
HS_LIB=
|
HS_LIB=
|
||||||
HS_INC=
|
HS_INC=
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -6,7 +6,6 @@
|
|||||||
# make Makefile
|
# make Makefile
|
||||||
#
|
#
|
||||||
|
|
||||||
OS := $(shell uname -s)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Installation directories
|
# Installation directories
|
||||||
@@ -14,7 +13,7 @@ OS := $(shell uname -s)
|
|||||||
prefix = /usr/local
|
prefix = /usr/local
|
||||||
libdir = ${prefix}/lib
|
libdir = ${prefix}/lib
|
||||||
includedir = ${prefix}/include/ndpi
|
includedir = ${prefix}/include/ndpi
|
||||||
CC = gcc
|
CC = @CC@
|
||||||
CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION -g
|
CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION -g
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user