diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-01-09 13:48:22 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-01-09 13:50:09 -0500 |
commit | 3be3248d291f3bbfa2fdf9f80843b46e375f3aae (patch) | |
tree | c1da217bec4d01f3b036c1d67b9005742ff2b280 /GNUmakefile | |
parent | 7551c54b3dcab961aee5e38d6cbef49cced27f6e (diff) | |
download | bfs-3be3248d291f3bbfa2fdf9f80843b46e375f3aae.tar.xz |
build: Link with -lsocket -lnsl on illumos
Link: https://illumos.org/man/3SOCKET/bind
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 4 |
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* |