[MacPorts] #55641: zmq @4.2.3 fails to build on 10.7 and 10.8 due to C++11
MacPorts
noreply at macports.org
Thu Jan 4 17:36:35 UTC 2018
#55641: zmq @4.2.3 fails to build on 10.7 and 10.8 due to C++11
-----------------------------+--------------------------------
Reporter: ryandesign | Owner: merijn
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords: lion, mountainlion
Port: zmq, zmq-devel |
-----------------------------+--------------------------------
Comment (by kencu):
Several fairly easy ways to disable c++11 on zmq, should that ever be
desired:
1. comment out the test for cxx11 in `configure.ac`
{{{
#AX_CXX_COMPILE_STDCXX_11([ext], [optional])
}}}
(more fancy, that test could be wrapped in an option block to make it a
full configure argument (upstream)).
2. set env variables during configure to preset results of the c++11 tests
as failing:
{{{
configure.env-append ax_cv_cxx_compile_cxx11=no
configure.env-append ax_cv_cxx_compile_cxx11__std_gnupp11=no
configure.env-append ax_cv_cxx_compile_cxx11__std_gnupp0x=no
}}}
(These env variable names are found in `config.log`.)
3. post-configure, reinplace the results of the config variable
`HAVE_CXX11` `in source/platform.hpp`
4. switch to the cmake build, and wrap the c++11 tests in an option
variable
--
Ticket URL: <https://trac.macports.org/ticket/55641#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list