Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2012 17:50:07 +0800
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        freebsd-x11@FreeBSD.org
Subject:   [PATCH] devel/gccmakede: fix build with clang
Message-ID:  <50B33B4F.9060904@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hi,

Here's the diff to fix build with clang. Ok?

Index: devel/gccmakedep/Makefile
===================================================================
--- devel/gccmakedep/Makefile   (revision 307767)
+++ devel/gccmakedep/Makefile   (working copy)
@@ -18,4 +18,14 @@ MAN1=                gccmakedep.1

  PLIST_FILES=   bin/gccmakedep

-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# clang's cpp destroys whitespace, particularly hard tabs in makefiles,
+# which is fatal for gccmakedep.
+.if ${OSVERSION} >= 1000024 || (${OSVERSION} < 1000024 && ${CC} == "clang")
+BUILD_DEPENDS+=        ucpp:${PORTSDIR}/devel/ucpp
+RUN_DEPENDS+=  ucpp:${PORTSDIR}/devel/ucpp
+CONFIGURE_ENV+=        ac_cv_path_RAWCPP="ucpp -s"
+.endif
+
+.include <bsd.port.post.mk>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50B33B4F.9060904>