From cdf0c3b9869c54e8a9edfaca4f8e7b8e709fa265 Mon Sep 17 00:00:00 2001 From: dinoex Date: Fri, 2 Dec 2011 18:17:46 +0000 Subject: - fix build with clang by disabling optimisation Feature safe: yes --- graphics/xv/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/graphics/xv/Makefile b/graphics/xv/Makefile index 1ada7d3aad68..dcc646e89fd5 100644 --- a/graphics/xv/Makefile +++ b/graphics/xv/Makefile @@ -65,4 +65,11 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/docs/gif* ${DOCSDIR} .endif + +.if defined(CC) && ${CC} == "clang" +# Optimizer crashes with +# Assertion failed: (isPtrIV == IndVar->getType()->isPointerTy() && "IndVar type must match IVInit type") +CFLAGS:= ${CFLAGS:S/-O2//g} +.endif + .include -- cgit