From 2f5a9fca3772c1bfd0b1f0e30dc5c7ccf4a45dfb Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mar 01 2017 16:04:07 +0000 Subject: ppc --- diff --git a/v8-314.spec b/v8-314.spec index e47c106..477a3f0 100644 --- a/v8-314.spec +++ b/v8-314.spec @@ -151,6 +151,9 @@ Patch27: v8-3.14.5.10-report-builtins-by-name.patch # (thanks to Ben Noordhuis) Patch28: v8-3.14.5.10-gcc7.patch +# MOAR PPC +Patch29: v8-powerpc-support-SConstruct.patch + %description V8 is Google's open source JavaScript engine. V8 is written in C++ and is used in Google Chrome, the open source browser from Google. V8 implements ECMAScript @@ -204,6 +207,7 @@ Python libraries from v8. %patch26 -p1 -b .CVE-2016-1669 %patch27 -p1 -b .builtinname %patch28 -p1 -b .gcc7 +%patch29 -p1 -b .ppc-harder # Do not need this lying about. rm -rf src/third_party/valgrind @@ -236,6 +240,12 @@ scons library=shared snapshots=on \ %ifarch x86_64 arch=x64 \ %endif +%ifarch ppc64 +arch=ppc64 +%endif +%ifarch ppc +arch=ppc +%endif %ifarch armv7hl armv7hnl armeabi=hard \ %endif diff --git a/v8-powerpc-support-SConstruct.patch b/v8-powerpc-support-SConstruct.patch new file mode 100644 index 0000000..31405a9 --- /dev/null +++ b/v8-powerpc-support-SConstruct.patch @@ -0,0 +1,16 @@ +diff -up v8-3.14.5.10/SConstruct.ppc-harder v8-3.14.5.10/SConstruct +--- v8-3.14.5.10/SConstruct.ppc-harder 2017-03-01 10:57:17.407225660 -0500 ++++ v8-3.14.5.10/SConstruct 2017-03-01 11:01:37.167705968 -0500 +@@ -143,6 +143,12 @@ LIBRARY_FLAGS = { + 'CCFLAGS': ['-m32'], + 'LINKFLAGS': ['-m32'] + }, ++ 'arch:ppc': { ++ 'CPPDEFINES': ['V8_TARGET_ARCH_PPC'], ++ }, ++ 'arch:ppc64': { ++ 'CPPDEFINES': ['V8_TARGET_ARCH_PPC64', 'V8_TARGET_ARCH_PPC'], ++ }, + 'arch:arm': { + 'CPPDEFINES': ['V8_TARGET_ARCH_ARM'], + 'unalignedaccesses:on' : {