path: root/package/exim/exim.mk
diff options
authorGravatar Romain Naour <romain.naour@gmail.com>2018-05-19 20:58:26 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-05-19 21:38:00 +0200
commita759d5e696dc8dbfc2e2137db26d85e43d8972fe (patch)
tree76e97f3a63131c0a8813bed96ae617efd7680f40 /package/exim/exim.mk
parent81fe62e09560f770a1d5de0ee2fd5810a022c072 (diff)
package/exim: remove libnsl linking
glibc now considers its built-in libnsl as being obsolete, and requires passing --enable-obsolete-libnsl to have it built and installed. libnsl is now provided as a separate project [1], but it isn't packaged yet in Buildroot. In preparation for dropping --enable-obsolete-libnsl from the glibc package, this commit ensures that exim doesn't use libnsl. It was already the case for uclibc and musl toolchains, so this commit simply extends that to make sure libnsl is also not used with glibc toolchains. Only Exim's nis.so and nisplus.so lookup modules require libnsl, but they are not build by default. So we can safely remove -lnsl from the Makefile-Linux. If someone want these modules, a new libnsl package must be added first to provide nsl library. Since we remove -lnsl unconditionally, use a patch instead of a sed command. [1] https://github.com/thkukuk/libnsl.git [2] https://fedoraproject.org/wiki/Changes/NISIPv6 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Baruch Siach <baruch@tkos.co.il> Cc: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/exim/exim.mk')
1 files changed, 0 insertions, 9 deletions
diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 37eab501a4..bde2df1153 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -72,14 +72,6 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL
-# only glibc provides libnsl, remove -lnsl for all other toolchains
-# http://bugs.exim.org/show_bug.cgi?id=1564
- $(SED) 's/-lnsl//g' $(@D)/OS/Makefile-Linux
# musl does not provide struct ip_options nor struct ip_opts (but it is
# available with both glibc and uClibc)
@@ -96,7 +88,6 @@ define EXIM_CONFIGURE_TOOLCHAIN
$(call exim-config-add,RANLIB,$(TARGET_RANLIB))
$(call exim-config-add,HOSTCC,$(HOSTCC))
$(call exim-config-add,HOSTCFLAGS,$(HOSTCFLAGS))