diff --git a/cross/python313/Makefile b/cross/python313/Makefile index 7083ed679043..3930daa74bdf 100644 --- a/cross/python313/Makefile +++ b/cross/python313/Makefile @@ -40,15 +40,14 @@ include ../../mk/spksrc.archs.mk # optionally generate optimized code ifeq ($(strip $(PYTHON_OPTIMIZE)),1) -CONFIGURE_ARGS += --enable-optimizations -# Some tests (like test_base64) must find libpython shared library at runtime. -# python: error while loading shared libraries: libpython3.13.so.1.0: cannot open shared object file: No such file or directory -ENV += LD_LIBRARY_PATH=$(WORK_DIR)/$(PKG_DIR) +# # Enable Link-Time Optimization CONFIGURE_ARGS += --with-lto -else -# test modules are required for optimization only -CONFIGURE_ARGS += --disable-test-modules +# +# pgo optimization can only be run native platform and now +# exit on errors which had no impact (and effects) previously. +# https://github.com/python/cpython/pull/111950 +#CONFIGURE_ARGS += --enable-optimizations endif CONFIGURE_ARGS += ac_cv_buggy_getaddrinfo=no