Explicitly pass -std=gnu++03 to the compiler.

This fixes the build with GCC 6, which defaults to -std=gnu++14. The port's
code does not work with C++11 or later.

PR:		219275
This commit is contained in:
Raphael Kubo da Costa 2017-08-18 12:44:13 +00:00
parent 76da550b62
commit 502922cc24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448225

View file

@ -32,6 +32,8 @@ SDL_CONFIGURE_OFF= --enable-ui=x11
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
USE_GCC= yes
# The port does not build with C++11 or later (bug 219275).
USE_CXXSTD= gnu++03
.else
CONFIGURE_ARGS+= --enable-cpu=generic
.endif