boost: fix string that would cause problems if gcc revision is greater than 1

This commit is contained in:
Danny Rawlins 2007-08-13 12:38:10 +10:00
parent 5b129de6c9
commit 47488fd671

View File

@ -13,7 +13,7 @@ build() {
cd boost_${version//./_}
local bindir='bin.linuxx86'
local gccversion="$(pkginfo -i |grep '^gcc ' |awk '{print $2}' |sed -e "s/\([.0-9]*\)-1/\1/")"
local gccversion="$(pkginfo -i |grep '^gcc ' |awk '{print $2}' |sed -e "s/\([.0-9]*\)-[0-9]*/\1/")"
export CFLAGS="$CFLAGS -fno-strict-aliasing"
(