python3: disable PGO building by default, can be enabled by setting PKGMK_PGO=true
This commit is contained in:
parent
f7aa7dd60a
commit
ef81409960
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/RvE+7q9s15wFsv6Vcw1eHK7jYf2c80J8nMZbvm2mVoEYx7jFkT3KqvxTufeD+zbG1iOdEJyEGtytEy5vOl9gQQ=
|
||||
SHA256 (Pkgfile) = b939b80425b5bbf08b778e3510092c113a3590734b27db76011025acdd4deff6
|
||||
RWSE3ohX2g5d/W6FfP7SWgN2ZoKQxuVRP2O2lE2PJrikcPczAmisd4kI5WobuOU5nHX8FmsfYASRasYHltwwxu3NTaT5MV9ATgc=
|
||||
SHA256 (Pkgfile) = 0839b25360733f7044003fe59f37b0e36355a31fd653bdadbb1d13d4621552b4
|
||||
SHA256 (.footprint) = 9357c204cf5a561b9da657ff11d4e312c1faff8ac8893ae13fa3bc366b5aeb8b
|
||||
SHA256 (Python-3.6.7.tar.xz) = 81fd1401a9d66533b0a3e9e3f4ea1c7c6702d57d5b90d659f971e6f1b745f77d
|
||||
|
@ -17,20 +17,21 @@ build() {
|
||||
rm -r Modules/_ctypes/{darwin,libffi}*
|
||||
rm -r Modules/_decimal/libmpdec
|
||||
|
||||
# PGO should be done with -O3
|
||||
CFLAGS="${CFLAGS/-O2/-O3}"
|
||||
if [ -n "${PKGMK_PGO}" ]; then
|
||||
# PGO should be done with -O3
|
||||
CFLAGS="${CFLAGS/-O2/-O3}"
|
||||
|
||||
# Speed up LTO
|
||||
sed -i -e "s|-flto |-flto=4 |g" configure configure.ac
|
||||
# Speed up LTO
|
||||
sed -i -e "s|-flto |-flto=4 |g" configure configure.ac
|
||||
PKGMK_PYTHON3='--with-lto --enable-optimizations '
|
||||
fi
|
||||
|
||||
./configure --prefix=/usr \
|
||||
./configure ${PKGMK_PYTHON3} --prefix=/usr \
|
||||
--enable-shared \
|
||||
--enable-ipv6 \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--enable-optimizations \
|
||||
--with-computed-gotos \
|
||||
--with-threads \
|
||||
--with-lto \
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--with-system-libmpdec \
|
||||
|
Loading…
Reference in New Issue
Block a user