Skip to content

Commit

Permalink
python313: Remove pgo optimizations as non-functional in cross-builds
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Oct 15, 2024
1 parent c6efe3a commit b66819d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cross/python313/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b66819d

Please sign in to comment.