From: Eric Le Bihan Date: Sun, 4 Feb 2018 18:07:45 +0000 (+0100) Subject: libhttpparser: add host variant X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31847c297d412f1e97d51d6d1526d2bfab6031ae;p=buildroot.git libhttpparser: add host variant Allow build of host variant of libhttpparser. Signed-off-by: Eric Le Bihan Signed-off-by: Peter Korsgaard --- diff --git a/package/libhttpparser/libhttpparser.mk b/package/libhttpparser/libhttpparser.mk index 8ff0413322..1df26017e7 100644 --- a/package/libhttpparser/libhttpparser.mk +++ b/package/libhttpparser/libhttpparser.mk @@ -23,4 +23,13 @@ define LIBHTTPPARSER_INSTALL_TARGET_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) PREFIX=$(TARGET_DIR)/usr install endef +define HOST_LIBHTTPPARSER_BUILD_CMDS + $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) library package +endef + +define HOST_LIBHTTPPARSER_INSTALL_CMDS + $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) PREFIX=$(HOST_DIR)/usr install +endef + $(eval $(generic-package)) +$(eval $(host-generic-package))