host-nodejs: use g++ as linker
authorSamuel Martin <s.martin49@gmail.com>
Wed, 16 Apr 2014 08:34:42 +0000 (10:34 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 16 Apr 2014 17:10:52 +0000 (19:10 +0200)
Fixes:
  http://autobuild.buildroot.net/results/f6b/f6b80ae32acf7f89bb1c12999679ff1be9733d44/

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nodejs/nodejs.mk

index b5973b55db688612197e4a99d208d4710523fec6..79393e2316dd6cf9ade8c2a859dcfabeceea1ebf 100644 (file)
@@ -40,11 +40,17 @@ define HOST_NODEJS_CONFIGURE_CMDS
 endef
 
 define HOST_NODEJS_BUILD_CMDS
-       $(HOST_MAKE_ENV) PYTHON=$(HOST_DIR)/usr/bin/python2 $(MAKE) -C $(@D)
+       $(HOST_MAKE_ENV) PYTHON=$(HOST_DIR)/usr/bin/python2 \
+               $(MAKE) -C $(@D) \
+               $(HOST_CONFIGURE_OPTS) \
+               LD="$(HOSTCXX)"
 endef
 
 define HOST_NODEJS_INSTALL_CMDS
-       $(HOST_MAKE_ENV) PYTHON=$(HOST_DIR)/usr/bin/python2 $(MAKE) -C $(@D) install
+       $(HOST_MAKE_ENV) PYTHON=$(HOST_DIR)/usr/bin/python2 \
+               $(MAKE) -C $(@D) install \
+               $(HOST_CONFIGURE_OPTS) \
+               LD="$(HOSTCXX)"
 endef
 
 ifeq ($(BR2_i386),y)