summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-09 13:48:22 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-09 13:50:09 -0500
commit3be3248d291f3bbfa2fdf9f80843b46e375f3aae (patch)
treec1da217bec4d01f3b036c1d67b9005742ff2b280
parent7551c54b3dcab961aee5e38d6cbef49cced27f6e (diff)
downloadbfs-3be3248d291f3bbfa2fdf9f80843b46e375f3aae.tar.xz
build: Link with -lsocket -lnsl on illumos
Link: https://illumos.org/man/3SOCKET/bind
-rw-r--r--GNUmakefile4
1 files changed, 4 insertions, 0 deletions
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*