linux/net/bpfilter
Masahiro Yamada b1183b6dca bpfilter: check if $(CC) can link static libc in Kconfig
On Fedora, linking static glibc requires the glibc-static RPM package,
which is not part of the glibc-devel package.

CONFIG_CC_CAN_LINK does not check the capability of static linking,
so you can enable CONFIG_BPFILTER_UMH, then fail to build:

    HOSTLD  net/bpfilter/bpfilter_umh
  /usr/bin/ld: cannot find -lc
  collect2: error: ld returned 1 exit status

Add CONFIG_CC_CAN_LINK_STATIC, and make CONFIG_BPFILTER_UMH depend
on it.

Reported-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
2020-05-17 18:52:01 +09:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
bpfilter_kern.c signal/bpfilter: Fix bpfilter_kernl to use send_sig not force_sig 2019-05-27 09:36:28 -05:00
bpfilter_umh_blob.S net: bpfilter: change section name of bpfilter UMH blob. 2019-01-16 15:46:46 -08:00
Kconfig bpfilter: check if $(CC) can link static libc in Kconfig 2020-05-17 18:52:01 +09:00
main.c net/bpfilter: remove superfluous testing message 2020-03-31 10:07:51 -07:00
Makefile bpfilter: match bit size of bpfilter_umh to that of the kernel 2020-05-17 18:52:01 +09:00
msgfmt.h