From 46796a9f8a02fc0e201c3f24b314c69a64463efc Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Tue, 21 Jun 2011 04:55:13 +0000 Subject: [PATCH] - Make it clang-friendly --- net/mDNSResponder/Makefile | 1 + net/mDNSResponder/files/patch-mDNSPosix_Makefile | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/net/mDNSResponder/Makefile b/net/mDNSResponder/Makefile index 46d36dff7a21..4778a29b7fd7 100644 --- a/net/mDNSResponder/Makefile +++ b/net/mDNSResponder/Makefile @@ -43,6 +43,7 @@ BROKEN= Does not compile on alpha .endif post-patch: + @${REINPLACE_CMD} -e '/ cc / s|cc|$${CC}|' ${WRKSRC}/Clients/Makefile @${MV} ${WRKSRC}/mDNSShared/mDNSResponder.8 \ ${WRKSRC}/mDNSShared/mDNSResponderPosix.8 diff --git a/net/mDNSResponder/files/patch-mDNSPosix_Makefile b/net/mDNSResponder/files/patch-mDNSPosix_Makefile index 9d546ef5b950..26830c18a350 100644 --- a/net/mDNSResponder/files/patch-mDNSPosix_Makefile +++ b/net/mDNSResponder/files/patch-mDNSPosix_Makefile @@ -1,5 +1,14 @@ --- mDNSPosix/Makefile.orig 2009-08-11 09:13:47.000000000 +0800 -+++ mDNSPosix/Makefile 2011-01-11 11:51:28.000000000 +0800 ++++ mDNSPosix/Makefile 2011-06-21 10:22:59.016198425 +0800 +@@ -54,7 +54,7 @@ + SHAREDDIR ?= ../mDNSShared + JDK = /usr/jdk + +-CC = @cc ++CC ?= @cc + BISON = @bison + FLEX = @flex + LD = ld -shared @@ -118,7 +118,7 @@ LOCALBASE?=/usr/local INSTBASE=$(LOCALBASE)