]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: drop support for cc-ldoption
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 23 Apr 2019 21:27:41 +0000 (14:27 -0700)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 20 May 2019 15:02:59 +0000 (00:02 +0900)
commit56b84bf9389913fc95af225a3d6449a8e35ca463
treed464025628dc65e9e36430ee53e35749639431be
parent37a4465b5cc538db8073c69b867f6246245dfd2d
kbuild: drop support for cc-ldoption

If you want to see if your linker supports a certain flag, then ask the
linker directly with ld-option (not the compiler with cc-ldoption).
Checking for linker flag support is an antipattern that complicates the
usage of various linkers other than bfd via -fuse-ld={bfd|gold|lld}.

Cc: clang-built-linux@googlegroups.com
Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Documentation/kbuild/makefiles.txt
scripts/Kbuild.include