From: nishi Date: Thu, 25 Jan 2024 07:20:28 +0000 (+0000) Subject: solaris support X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5c7aff43027343969669912956359cbf8d4153c0;p=libw3.git solaris support git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@62 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/Makefile b/Library/Makefile index c457acd..fa5afa6 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -7,6 +7,7 @@ ifeq ($(WINDOWS),YES) ./w3.dll: $(OBJS) $(CC) $(LDFLAGS) -L../openssl/lib/mingw/x64 -shared -Wl,--out-implib,./w3.lib -o $@ $^ $(LIBS) else + ./libw3.so: $(OBJS) $(CC) $(LDFLAGS) -shared -o $@ $^ $(LIBS) ./libw3.a: $(OBJS) diff --git a/Makefile b/Makefile index c10ce5c..995104c 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,12 @@ ifeq ($(WINDOWS),YES) LIBS += -lws2_32 endif +ifneq ($(WINDOWS),YES) +ifeq ($(shell uname -s),SunOS) +LIBS += -lsocket +endif +endif + ifeq ($(DEBUG),YES) CFLAGS += -g -D__DEBUG__ endif