diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-16 21:53:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-16 21:53:05 +0100 |
commit | 39646dce329c1b88b1de8ef0c450813765fda202 (patch) | |
tree | 19941ae07e43f177ae667f84abe3fd19e0d8b64c /Makefile.flags | |
parent | eb0c2e218ca1b0d733157bc2a11f8621d4ed2409 (diff) |
build system: make -static-libgcc selectable in config
OpenWrt wants this off.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags index cff935ff5..6ff4d7239 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -58,7 +58,8 @@ CFLAGS += $(call cc-option,-fno-builtin-strlen -fomit-frame-pointer -ffunction-s CFLAGS += $(call cc-option,-fno-guess-branch-probability,) CFLAGS += $(call cc-option,-funsigned-char,) -ifneq ($(CC),clang) +ifeq ($(CONFIG_STATIC_LIBGCC),y) +# Disable it, for example, if you get # "clang-9: warning: argument unused during compilation: '-static-libgcc'" CFLAGS += $(call cc-option,-static-libgcc,) endif |