community/v8 => fix gyp to build v7h correctly

This commit is contained in:
WarheadsSE 2012-08-06 21:14:51 -05:00
parent 913b903d9f
commit 002c671fb9

View file

@ -4,7 +4,7 @@
pkgname=v8
pkgver=3.11.10
pkgrel=2
pkgrel=3
plugrel=1
pkgdesc='A fast and modern javascript engine'
arch=('i686' 'x86_64')
@ -22,21 +22,21 @@ build() {
if [ "$CARCH" == "arm" ]; then
# we need to override the arch (last one will be used) because
# v8 thinks armv5te can use unaligned.. the kirkwood can't!
# We'll also beat it over the head.
# There is still a bug in the V8::internals::string
CXXFLAGS="$CXXFLAGS -march=armv5t -mno-unaligned-access" ;
export CXXFLAGS ;
GYP_FLAGS="-Darmeabi=soft "
VFP=off
GYPFLAGS="-Darmeabi=soft -Dv8_can_use_vfp_instructions=false -Dv8_can_use_unaligned_accesses=false -Darmv7=0"
VFP3=off
fi
if [ "$CARCH" == "armv6h" ]; then
GYP_FLAGS="-Darmeabi=hard "
VFP=off
GYPFLAGS="-Darmeabi=hard -Dv8_use_arm_eabi_hardfloat=true -Dv8_can_use_vfp_instructions=true -Darm7=0 -Darm_vfp=vfp"
VFP3=off
fi
if [ "$CARCH" == "armv7h" ]; then
GYP_FLAGS="-Darmeabi=hard "
VFP=on
GYPFLAGS="-Darmeabi=hard -Dv8_use_arm_eabi_hardfloat=true -Dv8_can_use_vfp_instructions=true -Darm7=1"
VFP3=on
fi
export GYPFLAGS
export CXXFLAGS ;
# short-cutting python=python2 for GYP, as it will only be used here.
export PYTHON=python2
@ -48,11 +48,11 @@ fi
# gets gyp
make dependencies
# make
# arm.release & arm.debug = just arm
GYP_FLAGS=$GYP_FLAGS make arm.release library=shared snapshot=off vfp3=$VFP
# make arm.release & arm.debug = just arm
make arm.release library=shared snapshot=off vfp3=$VFP
# eo build
}
# seperated to possibly split v8-debug in the future.
package (){
cd "${srcdir}/${pkgname}-${pkgver}"