diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2016-12-09 13:13:09 -0800 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-10 00:18:52 +0100 |
commit | b5bd012fab8560a78c70edef7e921e2b950dd02f (patch) | |
tree | ab5b682ab7b46caf53a04df6b8e914602917ee01 /utils | |
parent | 2b511ec751c88d39543532b536d238fceabc1644 (diff) |
utils: add -static to CFLAGS when HAVE_SHARED is not set
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile.in | 4 |
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 |