mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/v8 => fix gyp to build v7h correctly
This commit is contained in:
parent
913b903d9f
commit
002c671fb9
1 changed files with 13 additions and 13 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue