diff options
| author | Dirk Meyer <dinoex@FreeBSD.org> | 2011-12-02 18:17:46 +0000 |
|---|---|---|
| committer | Dirk Meyer <dinoex@FreeBSD.org> | 2011-12-02 18:17:46 +0000 |
| commit | b891984286bdc026692cf1aa92ca4b1f3e94dec2 (patch) | |
| tree | eb9c21aa14995d29bcb0575649d75c3013c9d1da | |
| parent | - Update to 4.0.14 (diff) | |
- fix build with clang by disabling optimisation
Feature safe: yes
| -rw-r--r-- | graphics/xv/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
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 <bsd.port.mk> |
