summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-01-08 05:53:17 -0700
committerLinus Groh <mail@linusgroh.de>2022-01-08 18:56:29 +0100
commit3ff7b76502ff2b7492660475a881befe2cda42f9 (patch)
treeb312ad75b1cb687a18c409971f7baba49310c2f2
parent498d3d853731a8ee848fb60bdc976627038ecd34 (diff)
downloadserenity-3ff7b76502ff2b7492660475a881befe2cda42f9.zip
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.
-rwxr-xr-xPorts/python3/package.sh3
1 files changed, 1 insertions, 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() {