summaryrefslogtreecommitdiff
path: root/utils/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'utils/Makefile.in')
-rw-r--r--utils/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/Makefile.in b/utils/Makefile.in
index 8666f890c..5378973df 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