From 3ff7b76502ff2b7492660475a881befe2cda42f9 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 8 Jan 2022 05:53:17 -0700 Subject: [PATCH] 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. --- Ports/python3/package.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Ports/python3/package.sh b/Ports/python3/package.sh index eabbba42af..5c53f6c0ba 100755 --- a/Ports/python3/package.sh +++ b/Ports/python3/package.sh @@ -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() {