From 7807321f09aa231bda42b74efe82df4caa052744 Mon Sep 17 00:00:00 2001 From: papadave Date: Mon, 8 Jan 2018 17:08:26 +0800 Subject: [PATCH] Add socket libraries for Solaris --- Makefile | 3 ++- configure | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 28169ab..fe5f8c6 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ INC = PIC = -fPIC AR = $(CROSS_COMPILE)ar RANLIB = $(CROSS_COMPILE)ranlib +SOCKET_LIBS = LDSO_SUFFIX = so LD_SET_SONAME = -Wl,-soname= @@ -82,7 +83,7 @@ src/version.o: src/version.h $(LDSO_PATHNAME): $(LOBJS) $(CC) $(LDFLAGS) $(LD_SET_SONAME)$(LDSO_PATHNAME) $(USER_LDFLAGS) \ - -shared -o $@ $(LOBJS) + -shared -o $@ $(LOBJS) $(SOCKET_LIBS) $(ALL_TOOLS): $(OBJS) $(CC) src/main.o src/common.o $(USER_LDFLAGS) -o $(PXCHAINS) diff --git a/configure b/configure index 917a4e9..bbde534 100755 --- a/configure +++ b/configure @@ -188,6 +188,7 @@ elif issolaris; then echo "NO_AS_NEEDED=" >> config.mak echo "LD_SET_SONAME=-Wl,-h," >> config.mak fi + echo "SOCKET_LIBS=-lsocket -lnsl" >> config.mak fi echo "Done, now run $make_cmd && $make_cmd install"