[Buildroot] [PATCH v3 1/2] package/exim: remove libnsl linking and fix native tools build
Baruch Siach
baruch at tkos.co.il
Thu May 17 07:26:27 UTC 2018
Hi Romain,
On Thu, May 17, 2018 at 09:21:39AM +0200, Romain Naour wrote:
[snip]
> -# only glibc provides libnsl, remove -lnsl for all other toolchains
> +# Only Exim's nis.so and nisplus.so lookup modules require libnsl,
> +# but they are not build by default.
> +# libnsl has been deprecated from Glibc and no other libc provide it.
> +# There is no libnsl package in Buildroot yet.
> +# Remove -lnsl for all toolchains.
> # http://bugs.exim.org/show_bug.cgi?id=1564
> -ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
> +# This also fixes a host build issue on recent distributions where
> +# libnsl is not installed by default.
> define EXIM_REMOVE_LIBNSL_FROM_MAKEFILE
> $(SED) 's/-lnsl//g' $(@D)/OS/Makefile-Linux
> endef
> -endif
It only occurred to me now. Since this is now unconditional we should use a
regular patch. sed is used here only because the modification used to be
conditional, and we don't do conditional patching. But this no longer holds.
> # musl does not provide struct ip_options nor struct ip_opts (but it is
> # available with both glibc and uClibc)
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
More information about the buildroot
mailing list