diff options
Diffstat (limited to 'net/kamailio/files/patch-Makefile.defs')
-rw-r--r-- | net/kamailio/files/patch-Makefile.defs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net/kamailio/files/patch-Makefile.defs b/net/kamailio/files/patch-Makefile.defs new file mode 100644 index 000000000000..0602f291f932 --- /dev/null +++ b/net/kamailio/files/patch-Makefile.defs @@ -0,0 +1,52 @@ +--- Makefile.defs.orig 2014-09-18 16:09:15.000000000 +0200 ++++ Makefile.defs 2014-09-19 08:27:49.000000000 +0200 +@@ -265,7 +265,7 @@ + + # find compiler name & version + ifeq ($(CC),) +- CC=gcc ++ CC=clang + endif + LD= $(CC) + CC_LONGVER:=$(shell if $(CC) -v 2>/dev/null; then \ +@@ -279,7 +279,7 @@ + #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' \ +@@ -432,7 +432,7 @@ + ifeq ($(LIBDIR),) + ARCHBSZ= $(shell echo $(ARCH) | sed -e 's/.*64.*/64b/') + ifeq ($(ARCHBSZ),64b) +- LIBDIR = lib64 ++ LIBDIR = lib + else + LIBDIR = lib + endif +@@ -946,11 +946,8 @@ + ifeq ($(CC_NAME), clang) + $(call set_if_empty,CPU,athlon64) + C_DEFS+=-DCC_GCC_LIKE_ASM +- CFLAGS+=-m32 +- $(CC_OPT) \ +- \ +- -mtune=$(CPU) +- LDFLAGS+=-m32 ++ CFLAGS+=-m32 $(CC_OPT) -mtune=$(CPU) ++ LDFLAGS+=-m32 + else # CC_NAME, clang + ifeq ($(CC_NAME), icc) + C_DEFS+=-DCC_GCC_LIKE_ASM +@@ -1745,7 +1742,7 @@ + endif + YACC_FLAGS=-d -b cfg + # on solaris add -lxnet (e.g. LIBS= -lxnet) +-LIBS= -ldl -lresolv ++LIBS= + LIB_PREFIX:=lib + LIB_SUFFIX:=.so + |