[PATCH] devel/imake: fix build with clang
Kevin Lo
kevlo at FreeBSD.org
Mon Nov 26 10:09:02 UTC 2012
Here's the trivial patch that fixes build with clang. Ok?
Index: devel/imake/Makefile
===================================================================
--- devel/imake/Makefile (revision 307768)
+++ devel/imake/Makefile (working copy)
@@ -43,7 +43,7 @@ post-patch:
# clang's cpp destroys whitespace, particularly hard tabs in makefiles,
# which is fatal for imake.
-.if defined(CC) && ${CC} == "clang"
+.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"
More information about the freebsd-x11
mailing list