]> Nishi Git Mirror - tewi.git/commitdiff
fix compat
authorNishi <nishi@nishi.boats>
Thu, 10 Oct 2024 02:15:08 +0000 (02:15 +0000)
committerNishi <nishi@nishi.boats>
Thu, 10 Oct 2024 02:15:08 +0000 (02:15 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@305 8739d7e6-ffea-ec47-b151-bdff447c6205

Module/Makefile
Platform/unixware.mk
Server/version.c

index 1097623a34076f2ab4ea4e36f8fb2be086f47384..88f593346cb0dd606d32db20ef9ebcd04d48c561 100644 (file)
@@ -3,6 +3,7 @@
 OBJ=o
 STATIC=a
 END=_dll
+SHARED=-shared
 include $(PWD)/Platform/$(PLATFORM).mk
 
 .PHONY: all clean
@@ -11,7 +12,7 @@ include $(PWD)/Platform/$(PLATFORM).mk
 all: mod_cgi$(LIBSUF) mod_proxy$(LIBSUF)
 
 .$(OBJ)$(LIBSUF):
-       $(CC) $(LDFLAGS) -shared -o $@ $< ../Common/common.$(STATIC) $(LIBS)
+       $(CC) $(LDFLAGS) $(SHARED) -o $@ $< ../Common/common.$(STATIC) $(LIBS)
 
 .c.$(OBJ):
        $(CC) $(CFLAGS) -I ../Server -c -o $@ $<
index 8066403cb0f09cdee1c09543350df0b335e0f9c6..90942a5813f8a81f046df52d0d4f6c820db9ac94 100644 (file)
@@ -4,6 +4,7 @@ CC = cc
 AR = ar
 CFLAGS = -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -I $(PWD)/VC6Compat
 LDFLAGS =
+SHARED = -G
 LIBS =
 EXEC =
 LIBSUF = .so
index 549b48b51d00f81039225bc254b004a40b98df08..2c3112aea6dc1c1db99fb9c8310848bd2dbdb97b 100644 (file)
@@ -33,6 +33,8 @@ const char* tw_platform =
     "PS3"
 #elif defined(__minix)
     "Minix"
+#elif defined(__USLC__)
+    "UnixWare"
 #else
     "Unix"
 #endif