]> Nishi Git Mirror - libw3.git/commitdiff
solaris support
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Thu, 25 Jan 2024 07:20:28 +0000 (07:20 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Thu, 25 Jan 2024 07:20:28 +0000 (07:20 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@62 d27a3e52-49c5-7645-884c-6793ebffc270

Library/Makefile
Makefile

index c457acda27bb388f54d018d66872609bcf6f77af..fa5afa6f670c7cfa820999cfa878baf3a14dbd2e 100644 (file)
@@ -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)
index c10ce5c759135c5060989a85afb5247d4e4c4935..995104c708d0df0571526e24bb31e5d86fb6c61f 100644 (file)
--- 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