From b5bd012fab8560a78c70edef7e921e2b950dd02f Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Fri, 9 Dec 2016 13:13:09 -0800 Subject: utils: add -static to CFLAGS when HAVE_SHARED is not set Signed-off-by: Max Filippov --- utils/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils') 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 -- cgit v1.2.3