Skip to content

Commit e164207

Browse files
committed
Avoid compiling with -lnsl under Linux
Distributions may not ship libnsl any more.
1 parent 7c92c44 commit e164207

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/crashrep/source/unx/makefile.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ APP1OBJS=$(OBJFILES)
5353
APP1RPATH=BRAND
5454

5555
.IF "$(OS)" != "FREEBSD" && "$(OS)" != "MACOSX" && "$(OS)"!="NETBSD"
56-
APP1STDLIBS+=-ldl -lnsl
56+
APP1STDLIBS+=-ldl
57+
.IF "$(OS)" != "LINUX"
58+
APP1STDLIBS+=-lnsl
59+
.ENDIF
5760
.ENDIF
5861
.IF "$(OS)" == "SOLARIS"
5962
APP1STDLIBS+=-lsocket

0 commit comments

Comments
 (0)