summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Bark <martin@barkynet.com>2017-07-18 12:45:42 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-19 21:59:20 +0200
commit48ab055348cc64933f4fde3ab1d92b85a470c8a5 (patch)
tree8bc61d049567a995b69866e50b28d38bbffa491d
parent653bcf477acbc947279ceb46d52a4891586c6ebe (diff)
downloadbuildroot-48ab055348cc64933f4fde3ab1d92b85a470c8a5.tar.gz
buildroot-48ab055348cc64933f4fde3ab1d92b85a470c8a5.zip
package/nodejs: use shared libhttpparser
nodejs requires libhttpparser and by default will use an internal copy bundled with the release. Change to using a shared libhttpparser library. Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/nodejs/Config.in1
-rw-r--r--package/nodejs/nodejs.mk4
2 files changed, 4 insertions, 1 deletions
diff --git a/package/nodejs/Config.in b/package/nodejs/Config.in
index f90ca2b3fb..a96901a31c 100644
--- a/package/nodejs/Config.in
+++ b/package/nodejs/Config.in
@@ -25,6 +25,7 @@ config BR2_PACKAGE_NODEJS
# linking, but that's too much of a corner case to support it.
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_C_ARES
+ select BR2_PACKAGE_LIBHTTPPARSER
select BR2_PACKAGE_ZLIB
help
Event-driven I/O server-side JavaScript environment based on V8.
diff --git a/package/nodejs/nodejs.mk b/package/nodejs/nodejs.mk
index 5bf8889ea9..f4e5969732 100644
--- a/package/nodejs/nodejs.mk
+++ b/package/nodejs/nodejs.mk
@@ -7,7 +7,8 @@
NODEJS_VERSION = 8.1.4
NODEJS_SOURCE = node-v$(NODEJS_VERSION).tar.xz
NODEJS_SITE = http://nodejs.org/dist/v$(NODEJS_VERSION)
-NODEJS_DEPENDENCIES = host-python host-nodejs c-ares zlib \
+NODEJS_DEPENDENCIES = host-python host-nodejs c-ares \
+ libhttpparser zlib \
$(call qstrip,$(BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS))
HOST_NODEJS_DEPENDENCIES = host-python host-zlib
NODEJS_LICENSE = MIT (core code); MIT, Apache and BSD family licenses (Bundled components)
@@ -17,6 +18,7 @@ NODEJS_CONF_OPTS = \
--without-snapshot \
--shared-zlib \
--shared-cares \
+ --shared-http-parser \
--without-dtrace \
--without-etw \
--dest-os=linux
OpenPOWER on IntegriCloud