projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: add a config option for passing the top-level make jobserver to packages that...
[openwrt.git]
/
include
/
host-build.mk
diff --git
a/include/host-build.mk
b/include/host-build.mk
index
03feefa
..
c4fcf94
100644
(file)
--- a/
include/host-build.mk
+++ b/
include/host-build.mk
@@
-45,8
+45,9
@@
define Host/Prepare
endef
HOST_CONFIGURE_VARS = \
endef
HOST_CONFIGURE_VARS = \
+ CC="$(HOSTCC)" \
CFLAGS="$(HOST_CFLAGS)" \
CFLAGS="$(HOST_CFLAGS)" \
- CPPFLAGS="$(HOST_CFLAGS)" \
+ CPPFLAGS="$(HOST_C
PP
FLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" \
SHELL="$(BASH)"
LDFLAGS="$(HOST_LDFLAGS)" \
SHELL="$(BASH)"
@@
-64,6
+65,12
@@
HOST_CONFIGURE_ARGS = \
HOST_CONFIGURE_CMD = ./configure
HOST_CONFIGURE_CMD = ./configure
+ifneq ($(HOST_OS),Darwin)
+ ifeq ($(CONFIG_BUILD_STATIC_TOOLS),y)
+ HOST_STATIC_LINKING = -static
+ endif
+endif
+
define Host/Configure/Default
(cd $(HOST_BUILD_DIR)/$(3); \
if [ -x configure ]; then \
define Host/Configure/Default
(cd $(HOST_BUILD_DIR)/$(3); \
if [ -x configure ]; then \
@@
-112,6
+119,7
@@
define Download/default
SUBDIR:=$(PKG_SOURCE_SUBDIR)
VERSION:=$(PKG_SOURCE_VERSION)
MD5SUM:=$(PKG_MD5SUM)
SUBDIR:=$(PKG_SOURCE_SUBDIR)
VERSION:=$(PKG_SOURCE_VERSION)
MD5SUM:=$(PKG_MD5SUM)
+ MIRROR_MD5SUM:=$(PKG_MIRROR_MD5SUM)
endef
define Host/Exports/Default
endef
define Host/Exports/Default