Re: [PATCH] bpfilter: check if $(CC) can static link in Kconfig

2020-05-11 Thread Masahiro Yamada
On Sun, May 10, 2020 at 10:04 AM Alexei Starovoitov wrote: > > On Sat, May 9, 2020 at 12:40 AM Masahiro Yamada wrote: > > > > On Fedora, linking static libraries requires the glibc-static RPM > > package, which is not part of the glibc-devel package. > > > > CONFIG_CC_CAN_LINK does not check the

Re: [PATCH] bpfilter: check if $(CC) can static link in Kconfig

2020-05-09 Thread Alexei Starovoitov
On Sat, May 9, 2020 at 12:40 AM Masahiro Yamada wrote: > > On Fedora, linking static libraries 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,

[PATCH] bpfilter: check if $(CC) can static link in Kconfig

2020-05-09 Thread Masahiro Yamada
On Fedora, linking static libraries 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: