From 8bec732598e32ff0480f4d44258a4286f1c41019 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 22 Jun 2018 13:32:15 +0300 Subject: Drop the redundant linkage of libnsl --- mysql/buildfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mysql/buildfile b/mysql/buildfile index 09b4987..8017d20 100644 --- a/mysql/buildfile +++ b/mysql/buildfile @@ -216,8 +216,17 @@ if ($tclass != 'windows') c.libs += -lpthread -lm - if ($tclass == 'linux') - c.libs += -lnsl +# Drop the redundant linkage of libnsl. +# +# The upstream package looks for gethostbyname_r() in libnsl and links it even +# though it doesn't export the symbol (that actually is not even used in +# libmariadb). +# +# Note that glibc 2.26 deprecates libnsl and doesn't install it by default, so +# its linkage just fails. +# +# if ($tclass == 'linux') +# c.libs += -lnsl if ($tclass != 'bsd') c.libs += -ldl -- cgit v1.1