packages/lang/python/python3
Jeffery To be9a554a26 python3: Enable compile-time optimizations
This adds the --enable-optimizations configure option (for
profile-guided optimization) for both host and target Python, and the
--with-lto configure option (for link-time optimization) for target
Python (for non-MIPS platforms).

Currently, compiling Python with LTO leads to link errors on mips and
mipsel. (Compiling with LTO appears to succeed on mips64 but there is
only one mips64 target available for convenient testing.)

This also cleans up the host and target configure options:

* Sort options/variables
  - Alphabetically
  - Flags/options before child-process environment variables
  - Group options by type (enable/disable/with/without)
  - Static options/variables before conditional ones

* Remove the prefix/dir options, as they are the same as the defaults
  set by the build system

* Remove --with-threads, as it is no longer a valid option (threads are
  always enabled)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-18 15:01:17 +08:00
..
files python3: Fix host build tool names recorded in target files 2020-04-27 14:10:53 +08:00
patches python3: Fix compilation without deprecated APIs 2020-01-14 14:43:58 -08:00
patches-pip python3-pip: Fix error when installing packages that require compilation 2020-04-24 21:09:37 +08:00
patches-setuptools python-setuptools: Add reproducibility patches from Debian 2019-05-24 13:18:09 +08:00
Config-python3-light.in python,python3: define config option for bluetooth support 2017-12-10 19:49:23 +02:00
Makefile python3: Enable compile-time optimizations 2020-05-18 15:01:17 +08:00