Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 69cfb208 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by LuK1337
Browse files

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: default avatarValdis Kletnieks <valdis.kletnieks@vt.edu>
Change-Id: I0d2a71e263fccc0b9ffdcbf1ad374db5e85a2d76
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent c81e05c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment