X-Git-Url: http://gitweb/?a=blobdiff_plain;f=python%2FPkgfile;h=7ec53b068b16f68997fd03bbd34dea4b9a3c1d82;hb=888a66a7d9310b523680925746893ec141689e97;hp=99d30f41eba80d6548b45f4f01694b544b57d3fe;hpb=b6c846138c67216c69cd9d292a049f9e391f12eb;p=ports%2Fopt-arm.git diff --git a/python/Pkgfile b/python/Pkgfile index 99d30f4..7ec53b0 100644 --- a/python/Pkgfile +++ b/python/Pkgfile @@ -5,7 +5,7 @@ # Depends on: db gdbm openssl bzip2 zlib sqlite3 name=python -version=2.7.8 +version=2.7.17 release=1 source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \ pyconfig.h) @@ -13,20 +13,22 @@ source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \ build () { cd Python-$version + export CFLAGS="-O2 -pipe -mfloat-abi=hard" + export CXXFLAGS="$CFLAGS" + # set OPT to the python default without -O3 # our CFLAGS are used as well OPT="-Wall -Wstrict-prototypes -fwrapv" \ ./configure --prefix=/usr \ - --mandir=/usr/man \ --enable-shared \ --with-threads \ - --enable-ipv6 + --enable-ipv6 make make -j1 DESTDIR=$PKG install # fix issue with man-page symlink - ln -sf python2.7.1 $PKG/usr/man/man1/python.1 + ln -sf python2.7.1 $PKG/usr/share/man/man1/python.1 ln -sf python2.7 $PKG/usr/bin/python ln -s python2.7 $PKG/usr/lib/python