node: fix build on x86 & x86.64 targets 2147/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Sat, 19 Dec 2015 13:16:02 +0000 (15:16 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sat, 19 Dec 2015 16:23:23 +0000 (18:23 +0200)
commite5ca27a97ced84c6bce0799de81cceb9c32e9cc7
tree4771202a728bfe211670bb05712177a09972e2a3
parent9bd34cd554b624915ec9e7b61909ded75de703ae
node: fix build on x86 & x86.64 targets

For x86 and x86_64, nodejs has some special CPU
code that needs to be selected by specifying
the correct CPU name (correct for nodejs).

On OpenWRT x86 is i386 ; node wants ia32 for this.
And x86_64 is x64 on nodejs.

So, we just need to do the proper substitutions.

Note: the ARCH env-var is obtained from CONFIG_ARCH, after
some subtitutions are applied.
So, it shouldn't affect other target archs.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/node/Makefile