summaryrefslogtreecommitdiff
path: root/net/kamailio/files/patch-src_Makefile.defs
diff options
context:
space:
mode:
Diffstat (limited to 'net/kamailio/files/patch-src_Makefile.defs')
-rw-r--r--net/kamailio/files/patch-src_Makefile.defs47
1 files changed, 47 insertions, 0 deletions
diff --git a/net/kamailio/files/patch-src_Makefile.defs b/net/kamailio/files/patch-src_Makefile.defs
new file mode 100644
index 000000000000..ac730a0ad841
--- /dev/null
+++ b/net/kamailio/files/patch-src_Makefile.defs
@@ -0,0 +1,47 @@
+--- src/Makefile.defs.orig 2017-04-21 13:52:06 UTC
++++ src/Makefile.defs
+@@ -208,7 +208,7 @@ YACC := $(shell echo "$${YACC}")
+
+ # find compiler name & version
+ ifeq ($(CC),)
+- CC=gcc
++ CC=clang
+ endif
+ LD= $(CC)
+ CC_LONGVER:=$(shell if $(CC) -v 2>/dev/null; then \
+@@ -222,7 +222,7 @@ MKTAGS=ctags
+ #find-out the compiler's name
+
+ ifneq (,$(findstring gcc, $(CC_LONGVER)))
+- CC_NAME=gcc
++ CC_NAME=clang
+ RPAREN=)
+ CC_VER:=$(word 1,$(CC)) $(shell $(CC) - --version|head -n 1|\
+ sed -e 's/([^$(RPAREN)]*)//g' \
+@@ -386,7 +386,7 @@ LIBDIR ?=
+ ifeq ($(LIBDIR),)
+ ARCHBSZ= $(shell echo $(ARCH) | sed -e 's/.*64.*/64b/')
+ ifeq ($(ARCHBSZ),64b)
+- LIBDIR = lib64
++ LIBDIR = lib
+ else
+ LIBDIR = lib
+ endif
+@@ -460,7 +460,7 @@ doxygen_dir=doc/doxygen
+
+ BASEDIR ?= $(DESTDIR)
+ basedir = $(BASEDIR)
+-RUNBASEDIR ?= $(DESTDIR)
++RUNBASEDIR ?= /
+ runbasedir = $(RUNBASEDIR)
+
+ # install location
+@@ -1722,7 +1722,7 @@ ifeq ($(YACC),)
+ endif
+ YACC_FLAGS=-d -b core/cfg
+ # on solaris add -lxnet (e.g. LIBS= -lxnet)
+-LIBS= -ldl -lresolv
++LIBS=
+ LIB_PREFIX:=lib
+ LIB_SUFFIX:=.so
+