From f60e6f849fae2722c1583ff8e0dcd7baecd2ae94 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 10 Oct 2024 02:15:08 +0000 Subject: [PATCH] fix compat git-svn-id: file:///raid/svn-personal/tewi/trunk@305 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Module/Makefile | 3 ++- Platform/unixware.mk | 1 + Server/version.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Module/Makefile b/Module/Makefile index 1097623..88f5933 100644 --- a/Module/Makefile +++ b/Module/Makefile @@ -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 $@ $< diff --git a/Platform/unixware.mk b/Platform/unixware.mk index 8066403..90942a5 100644 --- a/Platform/unixware.mk +++ b/Platform/unixware.mk @@ -4,6 +4,7 @@ CC = cc AR = ar CFLAGS = -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -I $(PWD)/VC6Compat LDFLAGS = +SHARED = -G LIBS = EXEC = LIBSUF = .so diff --git a/Server/version.c b/Server/version.c index 549b48b..2c3112a 100644 --- a/Server/version.c +++ b/Server/version.c @@ -33,6 +33,8 @@ const char* tw_platform = "PS3" #elif defined(__minix) "Minix" +#elif defined(__USLC__) + "UnixWare" #else "Unix" #endif -- 2.43.0