--- wscript +++ wscript 2025-12-02 00:41:57.000000000 +0800 @@ -309,6 +297,10 @@ conf.env.CXXFLAGS_WXPY.append('-D_GLIBCXX_USE_CXX11_ABI=0') + conf.env.CFLAGS_WXPY.append('-isystem@PREFIX@/include/LegacySupport') + conf.env.CXXFLAGS_WXPY.append('-isystem@PREFIX@/include/LegacySupport') + conf.env.CXXFLAGS_WXPY.append('-Wl,-lMacportsLegacySupport') + # And if --debug is set turn on more detailed debug info and turn off optimization if conf.env.debug: for flags in [conf.env.CFLAGS_PYEXT, conf.env.CXXFLAGS_PYEXT]: