Commit 4f5f485d authored by Tom Lane's avatar Tom Lane

Avoid using dllwrap to build pgevent in Mingw builds.

If this works, we can get rid of configure's support for locating dllwrap
... but let's see what the buildfarm says, first.

Hiroshi Inoue
parent 52acfd27
...@@ -17,30 +17,21 @@ include $(top_builddir)/src/Makefile.global ...@@ -17,30 +17,21 @@ include $(top_builddir)/src/Makefile.global
ifeq ($(PORTNAME), win32) ifeq ($(PORTNAME), win32)
OBJS=pgevent.o pgmsgevent.o OBJS=pgevent.o pgmsgevent.o
NAME=pgevent.dll NAME=pgevent
all: $(NAME) SHLIB_LINK =
SHLIB_EXPORTS = exports.txt
all: all-lib
install: all install-lib install: all install-lib
pgevent.dll: pgevent.def $(OBJS) include $(top_srcdir)/src/Makefile.shlib
$(DLLWRAP) --def $< -o $(NAME) $(OBJS)
pgmsgevent.o: pgmsgevent.rc win32ver.rc pgmsgevent.o: pgmsgevent.rc win32ver.rc
$(WINDRES) $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(top_srcdir)/src/include --include-dir=$(srcdir) --include-dir=. $(WINDRES) $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(top_srcdir)/src/include --include-dir=$(srcdir) --include-dir=.
all-lib: $(NAME) clean distclean: clean-lib
rm -f $(OBJS) win32ver.rc
install-lib: $(NAME)
$(INSTALL_STLIB) $< '$(DESTDIR)$(libdir)/$<'
uninstall-lib:
rm -f '$(DESTDIR)$(libdir)/$(NAME)'
clean distclean:
rm -f $(OBJS) $(NAME) win32ver.rc
clean-lib:
rm -f $(NAME)
endif endif
; dlltool --output-def pgevent.def pgevent.o pgmsgevent.o
EXPORTS
DllUnregisterServer@0 ;
DllRegisterServer@0 ;
DllInstall ;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment