1
0
Fork 0

added modifications for raspberry

This commit is contained in:
Frank Celler 2013-10-13 08:42:29 +00:00
parent 39d8c00b74
commit c67f060e2d
3 changed files with 24 additions and 2 deletions

View File

@ -19,7 +19,11 @@ BUILT_SOURCES += @V8_LIBS@
@echo "--------------------------------------------------------------------------------"
@echo
if ENABLE_ARM
cd @top_srcdir@/3rdParty/V8 && CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" GYP_DEFINES="armv7=0" $(MAKE) library=static strictaliasing=off snapshot=off werror=no hardfp=on @V8_TARGET@
else
cd @top_srcdir@/3rdParty/V8 && CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" $(MAKE) library=static strictaliasing=off snapshot=off werror=no @V8_TARGET@
endif
touch @srcdir@/.v8-build-@TRI_BITS@

View File

@ -8,7 +8,11 @@ V8_CPPFLAGS="-I${srcdir}/3rdParty/V8/include"
V8_LDFLAGS=""
V8_TARGET="native"
if test x$tr_DARWIN == xyes; then
if test x$tr_ARM == xyes; then
V8_TARGET="arm.release"
V8_LIBS="${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_base.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_nosnapshot.a"
elif test x$tr_DARWIN == xyes; then
if test "x$tr_BITS" == x64; then
V8_TARGET="x64.release"
else

View File

@ -13,11 +13,12 @@ AC_CANONICAL_HOST
AC_CANONICAL_TARGET
dnl ----------------------------------------------------------------------------
dnl check for MacOS X or FreeBSD
dnl check for special OS like MacOS X or FreeBSD
dnl ----------------------------------------------------------------------------
tr_DARWIN="no"
tr_FREEBSD="no"
tr_ARM="no"
case $target in
*-apple-darwin*)
@ -27,10 +28,15 @@ case $target in
*-*-freebsd*)
tr_FREEBSD="yes"
;;
armv6l-*-linux-gnueabihf)
tr_ARM="yes"
;;
esac
AM_CONDITIONAL(ENABLE_DARWIN, test "x$tr_DARWIN" = xyes)
AM_CONDITIONAL(ENABLE_FREEBSD, test "x$tr_FREEBSD" = xyes)
AM_CONDITIONAL(ENABLE_ARM, test "x$tr_ARM" = xyes)
dnl ----------------------------------------------------------------------------
dnl bits
@ -53,6 +59,14 @@ AC_SUBST(TRI_BITS)
CPPFLAGS="${CPPFLAGS} -DTRI_BITS=${TRI_BITS}"
dnl ----------------------------------------------------------------------------
dnl special flags
dnl ----------------------------------------------------------------------------
if test x$tr_ARM == xyes; then
CPPFLAGS="${CPPFLAGS} -DUSE_EABI_HARDFLOAT -march=armv6 -mfloat-abi=hard"
fi
dnl ----------------------------------------------------------------------------
dnl use automake to generate Makfile.in
dnl ----------------------------------------------------------------------------