Skip to content
Snippets Groups Projects
Commit 29b91ef0 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

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

SVN-Revision: 33154
parent 8c3ea37f
No related branches found
No related tags found
No related merge requests found
...@@ -153,6 +153,13 @@ menu "Global build settings" ...@@ -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 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. 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 config SHADOW_PASSWORDS
bool bool
prompt "Enable shadow password support" prompt "Enable shadow password support"
......
...@@ -66,7 +66,9 @@ HOST_CONFIGURE_ARGS = \ ...@@ -66,7 +66,9 @@ HOST_CONFIGURE_ARGS = \
HOST_CONFIGURE_CMD = ./configure HOST_CONFIGURE_CMD = ./configure
ifneq ($(HOST_OS),Darwin) ifneq ($(HOST_OS),Darwin)
HOST_STATIC_LINKING = -static ifeq ($(CONFIG_BUILD_STATIC_TOOLS),y)
HOST_STATIC_LINKING = -static
endif
endif endif
define Host/Configure/Default define Host/Configure/Default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment