summaryrefslogtreecommitdiff
path: root/graphics/sane-backends
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-06-25 12:20:58 +0000
committerwiz <wiz@pkgsrc.org>2006-06-25 12:20:58 +0000
commitaae0514abb315200cab6794d5f2755a5b3892cc2 (patch)
tree999cdbdd678dda1c44976482b295b41f7209a86d /graphics/sane-backends
parente8b17b4741ed015affc630c3b9ec294e6032819e (diff)
downloadpkgsrc-aae0514abb315200cab6794d5f2755a5b3892cc2.tar.gz
When building with gcc4, add "-fno-tree-ter" to CFLAGS.
Workaround for toolchain/33816, suggested by dogcow@.
Diffstat (limited to 'graphics/sane-backends')
-rw-r--r--graphics/sane-backends/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/sane-backends/Makefile b/graphics/sane-backends/Makefile
index ca33000de7f..8328930543f 100644
--- a/graphics/sane-backends/Makefile
+++ b/graphics/sane-backends/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2006/06/08 14:14:11 ben Exp $
+# $NetBSD: Makefile,v 1.31 2006/06/25 12:20:58 wiz Exp $
.include "Makefile.common"
COMMENT= API for access to scanners, digitals camera, frame grabbers etc.
@@ -13,6 +13,12 @@ USE_PKGLOCALEDIR= YES
CONFIGURE_ARGS+= --with-gphoto2=no
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION}
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-4*)
+CFLAGS+= -fno-tree-ter
+.endif
+
.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == "SunOS")