Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 2017 18:56:09 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447354 - head/games/wesnoth
Message-ID:  <201708041856.v74Iu9Qe078995@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Fri Aug  4 18:56:08 2017
New Revision: 447354
URL: https://svnweb.freebsd.org/changeset/ports/447354

Log:
  Build with -std=gnu++11 when OPENMP is on.
  
  -std=gnu++11 is necessary on FreeBSD 10, whose libc++ does not have the
  `operator delete(void*, size_t)' overload from C++14. GCC 6 defaults to
  --std=gnu++14, which then breaks the build.
  
  PR:		219485

Modified:
  head/games/wesnoth/Makefile

Modified: head/games/wesnoth/Makefile
==============================================================================
--- head/games/wesnoth/Makefile	Fri Aug  4 18:56:05 2017	(r447353)
+++ head/games/wesnoth/Makefile	Fri Aug  4 18:56:08 2017	(r447354)
@@ -78,6 +78,10 @@ NOTIFY_DESC=	Desktop notifications
 NOTIFY_LIB_DEPENDS=libdbus-1.so:devel/dbus
 NOTIFY_CMAKE_OFF=-DENABLE_NOTIFICATIONS=off
 OPENMP_DESC=	OpenMP support
+# -std=gnu++11 is necessary on FreeBSD 10, whose libc++ does not have the
+# `operator delete(void*, size_t)' overload from C++14. GCC 6 defaults to
+# --std=gnu++14, which then breaks the build (bug 219485).
+OPENMP_USE=	CXXSTD=gnu++11
 OPENMP_USES=	compiler:gcc-c++11-lib
 OPENMP_CMAKE_ON=-DENABLE_OMP=on
 RAWSOCKETS_DESC=	Use raw receiving sockets in multiplayer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708041856.v74Iu9Qe078995>