This is an automated email from the ASF dual-hosted git repository.

ardovm pushed a commit to branch nsl_removal
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 3ab492335d81de2c5299d27216a99b88227f9fce
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.
---
 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

Reply via email to