While testing some ports builds on arm64, I ran into a problem where llvm (rightly) rejects "c++ --std=c99". Digging into this, I discovered that we do it on purpose. The cvs log from 2007/01/10 says:
lang/python/Makefile.inc r1.45 "- update to python 2.3.6 - build python with CXX, fixes problems with extensions that use CXX such as the py-wxWidgets" I did a build on arm64, and python-3.6 builds and seems to run fine with this patch. The testsuite in net/py-msgpack passes. OK? Index: lang/python/Makefile.inc =================================================================== RCS file: /cvs/ports/lang/python/Makefile.inc,v retrieving revision 1.120 diff -u -p -u -p -r1.120 Makefile.inc --- lang/python/Makefile.inc 17 Feb 2017 10:01:28 -0000 1.120 +++ lang/python/Makefile.inc 17 Feb 2017 10:01:57 -0000 @@ -111,7 +111,6 @@ CONFIGURE_ARGS += --srcdir=${WRKSRC} \ --with-fpectl \ --with-threads \ --enable-ipv6 \ - --with-cxx_main \ --with-system-expat \ --with-system-ffi Index: lang/python/2.7/Makefile =================================================================== RCS file: /cvs/openbsd/ports/lang/python/2.7/Makefile,v retrieving revision 1.49 diff -u -p -u -p -r1.49 Makefile --- lang/python/2.7/Makefile 19 Dec 2016 20:47:26 -0000 1.49 +++ lang/python/2.7/Makefile 17 Feb 2017 10:02:44 -0000 @@ -7,6 +7,7 @@ VERSION = 2.7 PATCHLEVEL = .13 +REVISION = 0 SHARED_LIBS = python2.7 0.0 VERSION_SPEC = >=2.7,<2.8 Index: lang/python/3.4/Makefile =================================================================== RCS file: /cvs/openbsd/ports/lang/python/3.4/Makefile,v retrieving revision 1.14 diff -u -p -u -p -r1.14 Makefile --- lang/python/3.4/Makefile 23 Sep 2016 09:16:55 -0000 1.14 +++ lang/python/3.4/Makefile 17 Feb 2017 10:02:37 -0000 @@ -7,7 +7,7 @@ VERSION = 3.4 PATCHLEVEL = .5 -REVISION = 1 +REVISION = 3 SHARED_LIBS = python3.4m 1.0 VERSION_SPEC = >=3.4,<3.5 Index: lang/python/3.5/Makefile =================================================================== RCS file: /cvs/openbsd/ports/lang/python/3.5/Makefile,v retrieving revision 1.11 diff -u -p -u -p -r1.11 Makefile --- lang/python/3.5/Makefile 23 Sep 2016 09:16:55 -0000 1.11 +++ lang/python/3.5/Makefile 17 Feb 2017 10:02:33 -0000 @@ -7,7 +7,7 @@ VERSION = 3.5 PATCHLEVEL = .2 -REVISION = 1 +REVISION = 2 SHARED_LIBS = python3.5m 0.0 VERSION_SPEC = >=3.5,<3.6 Index: lang/python/3.6/Makefile =================================================================== RCS file: /cvs/openbsd/ports/lang/python/3.6/Makefile,v retrieving revision 1.1 diff -u -p -u -p -r1.1 Makefile --- lang/python/3.6/Makefile 26 Dec 2016 19:40:12 -0000 1.1 +++ lang/python/3.6/Makefile 17 Feb 2017 10:02:57 -0000 @@ -7,6 +7,7 @@ VERSION = 3.6 PATCHLEVEL = .0 +REVISION = 0 SHARED_LIBS = python3.6m 0.0 VERSION_SPEC = >=3.6,<3.7 -- It's not Camelot, but it's not Cleveland, either. -- Kevin White, mayor of Boston