![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit ef814099608014bea54e908fd006fb46d786bcbb Author: Danny Rawlins <monster.romster@gmail.com> Date: Mon Nov 5 00:44:44 2018 +1100 python3: disable PGO building by default, can be enabled by setting PKGMK_PGO=true diff --git a/python3/.signature b/python3/.signature index 773700ab9..83a341c96 100644 --- a/python3/.signature +++ b/python3/.signature @@ -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 diff --git a/python3/Pkgfile b/python3/Pkgfile index f5ae6ba2c..0462f1159 100644 --- a/python3/Pkgfile +++ b/python3/Pkgfile @@ -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 \