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)
commit055efab3120bae7ab1ed841317774f3c953f6e1b
treed464025628dc65e9e36430ee53e35749639431be
parentcb6f8739fbf98203d0fb0bc2c2dbbec0ddfe978a
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