Skip to content

Commit

Permalink
recipe: improve configure flag setting for native builds
Browse files Browse the repository at this point in the history
Signed-off-by: Ilkka Myller <ilkka.myller@nodefield.com>
  • Loading branch information
imyller committed May 4, 2017
1 parent 80e3c3c commit 0d6d359
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes-devtools/nodejs/nodejs_7.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*"
COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*"

INC_PR = "r1"
PR = "${INC_PR}.3"
PR = "${INC_PR}.4"

PROVIDES = "node"
RPROVIDES_${PN} = "node"
Expand All @@ -30,6 +30,9 @@ ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '-
'--with-arm-fpu=vfp', d), d), d)}"
ARCHFLAGS ?= ""

CROSSCONF = "--cross-compiling"
CROSSCONF_virtclass-native ="--no-cross-compiling"

GYP_DEFINES_append_mipsel = " mips_arch_variant='r1' "

PACKAGECONFIG ??= "zlib openssl"
Expand All @@ -51,7 +54,7 @@ do_configure () {
--dest-cpu="${@nodejs_map_dest_cpu(d.getVar('TARGET_ARCH', True), d)}" \
--dest-os=linux ${ARCHFLAGS} \
--with-intl=none \
--cross-compiling \
${CROSSCONF} \
${PACKAGECONFIG_CONFARGS}
}

Expand Down

0 comments on commit 0d6d359

Please sign in to comment.