[PATCH] devel/gccmakede: fix build with clang
Eitan Adler
lists at eitanadler.com
Mon Nov 26 14:40:38 UTC 2012
On 26 November 2012 04:50, Kevin Lo <kevlo at freebsd.org> wrote:
> 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")
${CC} == "clang"
should be
${CC:T:M*clang*}
and the conditional on OSVERSION >= 1000024 should be contingent on ${CC}
--
Eitan Adler
More information about the freebsd-x11
mailing list