Ports: Don't try to enable PGO for python3 when cross-compiling
The --enable-optimizations flag attempts to enable PGO. Profile-guided optimization is great in general, but will not work at all when doing a cross-compile. If there's a more fine-grained flag for generic optimization levels that doesn't try to do PGO, we should enable that instead. The flag also enables `-fno-semantic-interposition`, but our GCC patches enable that by default for -fPIC anyway, so that's not necessary.
This commit is contained in:
parent
498d3d8537
commit
3ff7b76502
Notes:
sideshowbarker
2024-07-17 21:25:24 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/3ff7b76502f Pull-request: https://github.com/SerenityOS/serenity/pull/11722 Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 2 deletions
|
@ -17,9 +17,8 @@ icon_file="../launcher.ico" # This is an older icon that's downloaded separately
|
|||
|
||||
depends=("bzip2" "libffi" "libuuid" "ncurses" "openssl" "readline" "sqlite" "termcap" "zlib")
|
||||
|
||||
configopts=("--enable-optimizations" "--disable-ipv6" "--without-ensurepip" "ac_cv_file__dev_ptmx=no" "ac_cv_file__dev_ptc=no")
|
||||
configopts=("--disable-ipv6" "--without-ensurepip" "ac_cv_file__dev_ptmx=no" "ac_cv_file__dev_ptc=no")
|
||||
|
||||
export CC="${CC} --sysroot=${SERENITY_INSTALL_ROOT}"
|
||||
export BLDSHARED="${CC} -shared"
|
||||
|
||||
pre_configure() {
|
||||
|
|
Loading…
Add table
Reference in a new issue