Den 08.04.2026 kl. 11.16 skrev Ryan Carsten Schmidt:
> Heads up! The autoconf port was just updated to 2.73. One of the changes
> in this version is that it defaults to C23 if the compiler supports it.
> Xcode 26 clang supports C23 as do newer MacPorts clangs.
> 
> C23 is not fully backward compatible with older C standards. Very old
> ports that use autoreconf where no fixed upstream version is available
> may need to have the appropriate "-std=" flag added to put the compiler
> into whatever older mode it requires.
1st of all, thanks for the HeadsUp !!!

OK, I'm running into this problem w/ php <= 8.2 where it fails w/ -at
least- bcmath.

Now, what is the most correct way of specifying a C++ version ? When
looking at the Portfiles, I can see at least 4 (four) diffenrent ways !

Examples
    configure.cxxflags-append -std=c++11
    configure.cflags-append -std=c++11
    configure.ldflags-append -std=gnu11
    configure.env           CXXFLAGS=-std=c++1z

Also, the C++ standard is issued everry 3rd year, so we've got
    c++11 ; c++14 ; c++17 ; c++20
Which one is recommended for php ?

Furthermore, should I report this upstream ?

--
Bjarne D Mathiesen
Korsør ; Danmark ; Europa
-----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 5.1 ; OpenCore + macOS 15.7.4 Sequoia
2 x 3,46 GHz 6-Core Intel Xeon ; 192 GB 1333 MHz DDR3 ECC RDIMM
AMD Radeon Vega VII 16 GB

Reply via email to