diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2011-12-03 02:17:46 +0800 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2011-12-03 02:17:46 +0800 |
commit | b891984286bdc026692cf1aa92ca4b1f3e94dec2 (patch) | |
tree | eb9c21aa14995d29bcb0575649d75c3013c9d1da /graphics | |
parent | 423f6e98ed3f7ca50452081c93692f834ec0492f (diff) | |
download | freebsd-ports-gnome-b891984286bdc026692cf1aa92ca4b1f3e94dec2.tar.gz freebsd-ports-gnome-b891984286bdc026692cf1aa92ca4b1f3e94dec2.tar.zst freebsd-ports-gnome-b891984286bdc026692cf1aa92ca4b1f3e94dec2.zip |
- fix build with clang by disabling optimisation
Feature safe: yes
Diffstat (limited to 'graphics')
-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> |