svn commit: r447354 - head/games/wesnoth
Raphael Kubo da Costa
rakuco at FreeBSD.org
Fri Aug 4 18:56:10 UTC 2017
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
More information about the svn-ports-all
mailing list