introduce a menuconfig option to turn off static linking of host utilities

SVN-Revision: 33154
lede-17.01
Jo-Philipp Wich 2012-08-13 00:26:34 +00:00
parent 8c3ea37f2f
commit 29b91ef01a
2 changed files with 10 additions and 1 deletions

View File

@ -153,6 +153,13 @@ menu "Global build settings"
When this option is enabled, packages are built with the full versions of iconv and GNU gettext
instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
config BUILD_STATIC_TOOLS
default y
bool "Attempt to link host utilities statically"
help
Linking host utilities like sed or firmware-utils statically increases the portability of the
generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
config SHADOW_PASSWORDS
bool
prompt "Enable shadow password support"

View File

@ -66,8 +66,10 @@ HOST_CONFIGURE_ARGS = \
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); \