浏览代码

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

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Max Filippov 8 年之前
父节点
当前提交
b5bd012fab
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      utils/Makefile.in

+ 4 - 0
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