Browse Source

utils: add -static to CFLAGS when HAVE_SHARED is not set

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Max Filippov 8 years ago
parent
commit
b5bd012fab
1 changed files with 4 additions and 0 deletions
  1. 4 0
      utils/Makefile.in

+ 4 - 0
utils/Makefile.in

@@ -25,6 +25,10 @@ else
 CFLAGS-utils-shared :=
 CFLAGS-utils-shared :=
 endif
 endif
 
 
+ifneq ($(HAVE_SHARED),y)
+CFLAGS-utils += -static
+endif
+
 CFLAGS-ldconfig := -DBUILDING_LINKAGE
 CFLAGS-ldconfig := -DBUILDING_LINKAGE
 ifeq ($(UCLIBC_STATIC_LDCONFIG),y)
 ifeq ($(UCLIBC_STATIC_LDCONFIG),y)
 CFLAGS-ldconfig += -static
 CFLAGS-ldconfig += -static