commit bc86e32d436bb1ce654eff3122fbe5b19b731922
parent 5ae3447d2c708a9f15979c79fc3e6db45545a0a9
Author: Dirk Neukirchen <plntyk.lede@plntyk.name>
Date: Tue, 2 Aug 2016 15:16:33 +0200
node: fix soft/hard float compile on arm/mips
reported by brcm2708/2709 user on IRC
Signed-off-by: Dirk Neukirchen <plntyk.lede@plntyk.name>
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/lang/node/Makefile b/lang/node/Makefile
@@ -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 \