svn commit: r430799 - head/databases/rocksdb

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat Jan 7 15:26:09 UTC 2017


Author: sunpoet
Date: Sat Jan  7 15:26:08 2017
New Revision: 430799
URL: https://svnweb.freebsd.org/changeset/ports/430799

Log:
  Fix build with GCC prior to 6.0
  
  PR:		193528
  Notified by:	jbeich

Modified:
  head/databases/rocksdb/Makefile

Modified: head/databases/rocksdb/Makefile
==============================================================================
--- head/databases/rocksdb/Makefile	Sat Jan  7 15:23:17 2017	(r430798)
+++ head/databases/rocksdb/Makefile	Sat Jan  7 15:26:08 2017	(r430799)
@@ -54,6 +54,10 @@ ZSTD_LIB_DEPENDS=	libzstd.so:archivers/z
 CXXFLAGS+=	-Wno-inconsistent-missing-override
 .endif
 
+.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 60
+CFLAGS+=	-D_GLIBCXX_USE_C99
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e '/^all: / s| $$(TESTS)||; /^dummy :=/d' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's| -fno-builtin-memcmp||; s| -ltcmalloc||' ${WRKSRC}/build_tools/build_detect_platform


More information about the svn-ports-all mailing list