diff options
author | Luca <deri@ntop.org> | 2018-08-30 10:05:53 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2018-08-30 10:05:53 +0200 |
commit | 0a33e439bde47d58391b14028ebcb50936926b78 (patch) | |
tree | c602204fe078e9629a35370b95ed5956d4c4dbdb | |
parent | f948f3525fddaae23eef0b88680e2c4e17c050ae (diff) |
Better clang handling
-rw-r--r-- | configure.seed | 7 | ||||
-rw-r--r-- | src/lib/Makefile.in | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/configure.seed b/configure.seed index 946557a33..bce16c7c4 100644 --- a/configure.seed +++ b/configure.seed @@ -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= diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in index 62f1b12a2..a0ac4a574 100644 --- a/src/lib/Makefile.in +++ b/src/lib/Makefile.in @@ -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 |