node: fix soft/hard float compile on arm/mips
authorDirk Neukirchen <redacted>
Tue, 2 Aug 2016 13:16:33 +0000 (15:16 +0200)
committerDirk Neukirchen <redacted>
Sat, 13 Aug 2016 16:58:47 +0000 (18:58 +0200)
reported by brcm2708/2709 user on IRC

Signed-off-by: Dirk Neukirchen <redacted>
lang/node/Makefile

index 4f9aa7960567252470b20ba8348dd854355f9e36..9bd3ddbffca6779456a00338c3c4f2676f17a18e 100644 (file)
@@ -57,7 +57,18 @@ CONFIGURE_ARGS= \
        --shared-openssl \
        --prefix=/usr
 
+ifneq ($(findstring arm,$(ARCH)),)
+CONFIGURE_ARGS+= \
+       $(if $(CONFIG_SOFT_FLOAT),--with-arm-float-abi=soft,--with-arm-float-abi=hard)
+endif
+
+ifneq ($(findstring mips,$(ARCH)),)
+CONFIGURE_ARGS+= \
+       $(if $(CONFIG_SOFT_FLOAT),--with-mips-float-abi=soft,--with-mips-float-abi=hard)
+endif
+
 HOST_CONFIGURE_VARS:=
+
 HOST_CONFIGURE_ARGS:= \
        --dest-os=linux \
        --without-snapshot \
git clone https://git.99rst.org/PROJECT