aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2017-08-05 02:56:08 +0800
committerrakuco <rakuco@FreeBSD.org>2017-08-05 02:56:08 +0800
commitbf76131c4a6670d528ed50a95dd633e49f1df3e8 (patch)
tree4e07aa36aaf36f5c60e11232aea50d7bef8b8702 /games
parent3a6cf00ec99b906e6ea48027488e386ac120464a (diff)
downloadfreebsd-ports-gnome-bf76131c4a6670d528ed50a95dd633e49f1df3e8.tar.gz
freebsd-ports-gnome-bf76131c4a6670d528ed50a95dd633e49f1df3e8.tar.zst
freebsd-ports-gnome-bf76131c4a6670d528ed50a95dd633e49f1df3e8.zip
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
Diffstat (limited to 'games')
-rw-r--r--games/wesnoth/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/wesnoth/Makefile b/games/wesnoth/Makefile
index d085a1ab60ea..0aa2cdd523aa 100644
--- a/games/wesnoth/Makefile
+++ b/games/wesnoth/Makefile
@@ -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