From b51edc85679f5d990b63bdf8b4f983229e28be97 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 8 Aug 2017 11:57:03 +0200 Subject: [PATCH] nodejs-current: Hack at mkpeephole build --- disabled-packages/nodejs-current/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/disabled-packages/nodejs-current/build.sh b/disabled-packages/nodejs-current/build.sh index b183db42e..a6071d9bb 100644 --- a/disabled-packages/nodejs-current/build.sh +++ b/disabled-packages/nodejs-current/build.sh @@ -30,7 +30,6 @@ termux_step_configure () { export CXXFLAGS="-Os" unset CPPFLAGS LDFLAGS - if [ $TERMUX_ARCH = "arm" ]; then DEST_CPU="arm" elif [ $TERMUX_ARCH = "i686" ]; then @@ -56,4 +55,11 @@ termux_step_configure () { --without-inspector \ --without-intl \ --cross-compiling + + # Remove cross-compile directories: + sed -i '/usr\/include/d; /usr\/lib/d' out/deps/v8/src/mkpeephole.host.mk + # The above statement causes some straggling \ in the makefile: + sed -i 's|-I$(srcdir)/deps/v8 \\|-I$(srcdir)/deps/v8|' out/deps/v8/src/mkpeephole.host.mk + # Remove extra libraries not needed for mkpeephole: + sed -i '/-lcares/d; /-lcrypto/d; /-lssl/d' out/deps/v8/src/mkpeephole.host.mk }