anchor.diff:      if [ "${TARGET_ARCH}" = "arm" ]; then
           ./configure --prefix=${prefix} --without-snapshot --shared-openssl --dest-cpu=arm --dest-os=linux ${ARCHFLAGS}
       elif [ "${TARGET_ARCH}" = "x86_64" ]; then
  -        ./configure --prefix=${prefix} --shared-openssl --dest-cpu=x64
  +        ./configure --prefix=${prefix} --without-snapshot --shared-openssl --dest-cpu=x64
       else
  -        ./configure --prefix=${prefix} --shared-openssl --dest-cpu=ia32
  +        ./configure --prefix=${prefix} --without-snapshot --shared-openssl --dest-cpu=ia32
       fi
   }
   
  
positive.code: ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)}"
  ARCHFLAGS ?= ""
  
  do_configure_prepend_class-target() {
      # use native tool even when BUILD_ARCH and TARGET_ARCH are both x64,
      # fixes calling mksnapshot linked with incorrect ld-linux-x86-64.so.2 path
      # e.g. Ubuntu uses /lib64/ld-linux-x86-64.so.2, but qemux86-64 target build has
      # /lib/ld-linux-x86-64.so.2 in node-v0.10.15/out/Release/mksnapshot and do_compile
      # fails with:
      # |   LD_LIBRARY_PATH=/OE/tmp-eglibc/work/x86_64-webos-linux/nodejs/0.10.15-r0/node-v0.10.15/out/Release/lib.host:/OE/tmp-eglibc/work/x86_64-
      # | /bin/sh: 1: /OE/tmp-eglibc/work/x86_64-webos-linux/nodejs/0.10.15-r0/node-v0.10.15/out/Release/mksnapshot: not found
      # | make[1]: *** [/OE/tmp-eglibc/work/x86_64-webos-linux/nodejs/0.10.15-r0/node-v0.10.15/out/Release/obj.target/v8_snapshot/geni/snapshot.cc]
  
      # $ ldd node-v0.10.15-qemux86-64/node-v0.10.15/out/Release/mksnapshot  | grep ld-linux
      #   /lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f6b5f206000)
      # $ ldd node-v0.10.15-native/node-v0.10.15/out/Release/mksnapshot | grep ld-linux
      #   /lib64/ld-linux-x86-64.so.2 (0x00007fdef26d5000)
  
      sed -i 's#<(PRODUCT_DIR)#${STAGING_BINDIR_NATIVE}#g' ${S}/deps/v8/tools/gyp/v8.gyp
  }
  
  # Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi
  do_configure () {
      export LD="${CXX}"
  
negative.code: 
  DEPENDS = "openssl"
  
  PR = "r5"
  
  SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
  SRC_URI[md5sum] = "59f295b0a30dc8dbdb46407c2d9b2923"
  