X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=include%2Fhost-build.mk;h=40af5c87ccfa703d3030603f88a87b1d534744fd;hp=a8bc79ea67de34648d444644e694539b8d95d219;hb=da93f7edd2d4a6414e8192351214d2f0502d2d27;hpb=756ea2ddafd0c0ed84f2c3da8a6ac5293f440855 diff --git a/include/host-build.mk b/include/host-build.mk index a8bc79ea67..40af5c87cc 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -66,7 +66,9 @@ HOST_CONFIGURE_ARGS = \ HOST_CONFIGURE_CMD = ./configure ifneq ($(HOST_OS),Darwin) - HOST_STATIC_LINKING = -static + ifeq ($(CONFIG_BUILD_STATIC_TOOLS),y) + HOST_STATIC_LINKING = -static + endif endif define Host/Configure/Default