svn commit: r447224 - branches/2017Q3/cad/openvsp

Mark Felder feld at FreeBSD.org
Thu Aug 3 15:13:33 UTC 2017


Author: feld
Date: Thu Aug  3 15:13:31 2017
New Revision: 447224
URL: https://svnweb.freebsd.org/changeset/ports/447224

Log:
  MFH: r446855
  
  Explicitly build with -std=gnu++11.
  
  This fixes the build with GCC 6, which switched its default from -std=gnu++98
  to -std=gnu++14. With this switch, it added a `operator delete(void*, size_t)'
  overload and uses it for all delete calls. This does not play well with
  dependencies built with other compilers (such as base clang), which use the old
  operator delete overload and cause linking errors.
  
  PR:		219484
  Submitted by:	fernando.apesteguia at gmail.com (maintainer)
  
  Approved by:	ports-secteam (with hat)

Modified:
  branches/2017Q3/cad/openvsp/Makefile
Directory Properties:
  branches/2017Q3/   (props changed)

Modified: branches/2017Q3/cad/openvsp/Makefile
==============================================================================
--- branches/2017Q3/cad/openvsp/Makefile	Thu Aug  3 15:10:16 2017	(r447223)
+++ branches/2017Q3/cad/openvsp/Makefile	Thu Aug  3 15:13:31 2017	(r447224)
@@ -34,6 +34,13 @@ CMAKE_SOURCE_PATH=	${WRKSRC}/SuperProject
 CMAKE_INSTALL_PREFIX=	${STAGEDIR}${PREFIX}
 USES=		cmake:outsource,noninja compiler:gcc-c++11-lib jpeg
 
+# On FreeBSD < 11 libc++ lacks support for sized delete operators.
+# GCC dropped the builtin version of these operators in 6+ by
+# defaulting to gnu++14. Force c++11 instead.
+# For a more detailed discussion see:
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219484
+USE_CXXSTD=	gnu++11
+
 CMAKE_ARGS=	-DVSP_USE_SYSTEM_CMINPACK:BOOLEAN=yes \
 		-DVSP_USE_SYSTEM_CPPTEST:BOOLEAN=yes \
 		-DVSP_USE_SYSTEM_CODEELI:BOOLEAN=no \


More information about the svn-ports-branches mailing list