aports/community/rethinkdb/paxmark-x86_64.patch
Natanael Copa 29efe5822c community/rethinkdb: enable build for s390x
The s390x patch conflicts with both the ppc64le patch and the paxmark.
The PaX kernel is only supported for x86_64 so we can conditionally
apply the ppc64le, s390x or paxmark patch depending on arch.
2017-11-15 19:12:09 +00:00

16 lines
876 B
Diff

diff --git a/mk/support/pkg/v8.sh b/mk/support/pkg/v8.sh
index 5454e76..58bf70e 100644
--- a/mk/support/pkg/v8.sh
+++ b/mk/support/pkg/v8.sh
@@ -47,6 +47,10 @@ pkg_install () {
*) arch=native ;;
esac
mode=release
+ pkg_make out/Makefile.$arch.$mode CXX=$CXX LINK=$CXX LINK.target=$CXX GYPFLAGS="-Dwerror= $arch_gypflags" V=1
+ pkg_make -C out -f Makefile.$arch.$mode mksnapshot BUILDTYPE=Release builddir="$build_dir/out/$arch.$mode" \
+ CXX=$CXX LINK=$CXX LINK.target=$CXX GYPFLAGS="-Dwerror= $arch_gypflags" V=1
+ paxmark -m "$build_dir"/out/$arch.$mode/mksnapshot
pkg_make $arch.$mode CXX=$CXX LINK=$CXX LINK.target=$CXX GYPFLAGS="-Dwerror= $arch_gypflags" V=1
for lib in `find "$build_dir/out/$arch.$mode" -maxdepth 1 -name \*.a` `find "$build_dir/out/$arch.$mode/obj.target" -name \*.a`; do
name=`basename $lib`