This is an automated email from the ASF dual-hosted git repository.
ardovm pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO41X by this push:
new 3a316e766d Avoid compiling with -lnsl under Linux
3a316e766d is described below
commit 3a316e766d9fc57362d9642acfbfabf844ac80f1
Author: Arrigo Marchiori <[email protected]>
AuthorDate: Sun Feb 15 14:20:07 2026 +0100
Avoid compiling with -lnsl under Linux
Distributions may not ship libnsl any more.
(cherry picked from commit e1642077eee7e2be9e34c5cd411002f3b8ccfe7b)
---
main/crashrep/source/unx/makefile.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/main/crashrep/source/unx/makefile.mk
b/main/crashrep/source/unx/makefile.mk
index abffa242cc..7ac156048a 100644
--- a/main/crashrep/source/unx/makefile.mk
+++ b/main/crashrep/source/unx/makefile.mk
@@ -53,7 +53,10 @@ APP1OBJS=$(OBJFILES)
APP1RPATH=BRAND
.IF "$(OS)" != "FREEBSD" && "$(OS)" != "MACOSX" && "$(OS)"!="NETBSD"
-APP1STDLIBS+=-ldl -lnsl
+APP1STDLIBS+=-ldl
+.IF "$(OS)" != "LINUX"
+APP1STDLIBS+=-lnsl
+.ENDIF
.ENDIF
.IF "$(OS)" == "SOLARIS"
APP1STDLIBS+=-lsocket