From ae127b19a50aa54255e4330ccfdd9a5d058e581d Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Thu, 3 Nov 2016 15:24:46 +0000 Subject: [PATCH] binding.gyp.cmake: Use node or nodejs depending on what the binary is called This should fix npm builds on some recent ubuntu and debian images Signed-off-by: Brendan Le Foll --- src/javascript/binding.gyp.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/javascript/binding.gyp.cmake b/src/javascript/binding.gyp.cmake index 6de4dc3..0e95cd9 100644 --- a/src/javascript/binding.gyp.cmake +++ b/src/javascript/binding.gyp.cmake @@ -11,8 +11,8 @@ @mraa_LIB_INCLUDE_DIRS_GYP@ ], 'variables': { - "v8_version%": " /dev/null || echo node` -e 'console.log(process.versions.v8)' | sed 's/\.//g' | cut -c 1-5)", + "arch%": " /dev/null || echo node` -e 'console.log(process.arch)')" }, 'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ], 'cflags!': [ '-fno-exceptions' ],