Signed-off-by: Max Filippov <jcmvbkbc(a)gmail.com>
---
utils/Makefile.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/utils/Makefile.in b/utils/Makefile.in
index 8666f89..5378973 100644
--- a/utils/Makefile.in
+++ b/utils/Makefile.in
@@ -25,6 +25,10 @@ else
CFLAGS-utils-shared :=
endif
+ifneq ($(HAVE_SHARED),y)
+CFLAGS-utils += -static
+endif
+
CFLAGS-ldconfig := -DBUILDING_LINKAGE
ifeq ($(UCLIBC_STATIC_LDCONFIG),y)
CFLAGS-ldconfig += -static
--
2.1.4