From 3be3248d291f3bbfa2fdf9f80843b46e375f3aae Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 9 Jan 2024 13:48:22 -0500 Subject: build: Link with -lsocket -lnsl on illumos Link: https://illumos.org/man/3SOCKET/bind --- GNUmakefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index a0719a2..66af797 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -165,6 +165,10 @@ ifeq ($(OS),DragonFly) LOCAL_LDLIBS += -lposix1e endif +ifeq ($(OS),SunOS) +LOCAL_LDLIBS += -lsocket -lnsl +endif + ifneq ($(filter gcov,$(MAKECMDGOALS)),) LOCAL_CFLAGS += --coverage # gcov only intercepts fork()/exec() with -std=gnu* -- cgit v1.2.3