summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-05-09 09:39:15 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-17 11:52:01 +0200
commitb1183b6dca3e0d59ce8fa81767def6ea6188e8ec (patch)
tree0ddba79b19f44ad98ae7e918601c531462f4d52b /net
parentbpfilter: match bit size of bpfilter_umh to that of the kernel (diff)
downloadlinux-b1183b6dca3e0d59ce8fa81767def6ea6188e8ec.tar.xz
linux-b1183b6dca3e0d59ce8fa81767def6ea6188e8ec.zip
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>
Diffstat (limited to 'net')
-rw-r--r--net/bpfilter/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bpfilter/Kconfig b/net/bpfilter/Kconfig
index fed9290e3b41..045144d4a42c 100644
--- a/net/bpfilter/Kconfig
+++ b/net/bpfilter/Kconfig
@@ -9,7 +9,7 @@ menuconfig BPFILTER
if BPFILTER
config BPFILTER_UMH
tristate "bpfilter kernel module with user mode helper"
- depends on CC_CAN_LINK
+ depends on CC_CAN_LINK_STATIC
default m
help
This builds bpfilter kernel module with embedded user mode helper