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"