*** postgresql-8.0.0cvs/src/interfaces/libpq/Makefile.orig Sun Sep 26 04:14:47 2004 --- postgresql-8.0.0cvs/src/interfaces/libpq/Makefile Sat Oct 9 15:17:01 2004 *************** *** 27,32 **** --- 27,36 ---- dllist.o md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o \ $(filter crypt.o getaddrinfo.o inet_aton.o open.o snprintf.o strerror.o, $(LIBOBJS)) + ifeq ($(PORTNAME), cygwin) + override shlib = cyg$(NAME)$(DLSUFFIX) + endif + ifeq ($(PORTNAME), win32) OBJS+=win32.o libpqrc.o libpqrc.o: libpq.rc *************** *** 54,59 **** --- 58,70 ---- include $(top_srcdir)/src/Makefile.shlib backend_src = $(top_srcdir)/src/backend + ifeq ($(PORTNAME), cygwin) + $(shlib) lib$(NAME).dll.a: $(OBJS) $(DLLINIT) + $(DLLTOOL) --export-all $(DLLTOOL_DEFFLAGS) --dllname $(shlib) --output-def $(NAME).def $(OBJS) + $(DLLWRAP) -Wl,--major-image-version,$(SO_MAJOR_VERSION) -Wl,--minor-image-version,$(SO_MINOR_VERSION) \ + -o $(shlib) --dllname $(shlib) $(DLLWRAP_FLAGS) --def $(NAME).def $(OBJS) $(DLLINIT) $(SHLIB_LINK) + $(DLLTOOL) --dllname $(shlib) $(DLLTOOL_LIBFLAGS) --def $(NAME).def --output-lib lib$(NAME).a + endif # We use several backend modules verbatim, but since we need to # compile with appropriate options to build a shared lib, we can't