nodejs-current: Hack at mkpeephole build
authorFredrik Fornwall <fredrik@fornwall.net>
Tue, 8 Aug 2017 09:57:03 +0000 (11:57 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 8 Aug 2017 09:57:03 +0000 (11:57 +0200)
disabled-packages/nodejs-current/build.sh

index b183db4..a6071d9 100644 (file)
@@ -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
 }