aboutsummaryrefslogtreecommitdiff
path: root/devel/google-sparsehash
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2006-05-20 08:18:07 +0000
committerVasil Dimov <vd@FreeBSD.org>2006-05-20 08:18:07 +0000
commit8880a3bd7331e364ab85588f8e9559e4c339283d (patch)
treeef12356f9f037b8b82a0d780ef340b770aceb6d9 /devel/google-sparsehash
parent366285f8d48db4e93bda0a2af29ce3bccb85a926 (diff)
downloadports-8880a3bd7331e364ab85588f8e9559e4c339283d.tar.gz
ports-8880a3bd7331e364ab85588f8e9559e4c339283d.zip
Fix build on 4.x
Reported by: kris
Notes
Notes: svn path=/head/; revision=162858
Diffstat (limited to 'devel/google-sparsehash')
-rw-r--r--devel/google-sparsehash/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/google-sparsehash/Makefile b/devel/google-sparsehash/Makefile
index 9aba89d3a9e9..e1f409ad9cf7 100644
--- a/devel/google-sparsehash/Makefile
+++ b/devel/google-sparsehash/Makefile
@@ -18,6 +18,12 @@ COMMENT= Google's hashtable implementations optimized for space or speed
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+.if ${OSVERSION} < 500000
+# /usr/include/g++/stl_algobase.h:139: template instantiation depth exceeds maximum of 17
+# /usr/include/g++/stl_algobase.h:139: (use -ftemplate-depth-NN to increase the maximum)
+CFLAGS+= -ftemplate-depth-32
+.endif
+
post-patch:
.if !defined(NOPORTDOCS)
${REINPLACE_CMD} -e \