This is an automated email from the ASF dual-hosted git repository.
ardovm pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push:
new 51541ca12d Avoid compiling with -lnsl under Linux
51541ca12d is described below
commit 51541ca12ddedcfbc1c5cdf058190d33d63bcd08
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 3953604860..2f054554db 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