aboutsummaryrefslogtreecommitdiff
path: root/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'mysql')
-rw-r--r--mysql/buildfile13
1 files 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