Skip to content
Snippets Groups Projects
Commit 04ee0db6 authored by Andrew Dunstan's avatar Andrew Dunstan
Browse files

Allow vpath builds and regression tests to succeed on Mingw. Backpatch to...

Allow vpath builds and regression tests to succeed on Mingw. Backpatch to release 8.4 - earlier releases would require more changes and it's not worth the trouble.
parent 50004721
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ pgevent.dll: pgevent.def $(OBJS) ...@@ -27,7 +27,7 @@ pgevent.dll: pgevent.def $(OBJS)
$(DLLWRAP) --def $< -o $(NAME) $(OBJS) $(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) $(WINDRES) $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(top_srcdir)/src/include --include-dir=$(srcdir) --include-dir=.
all-lib: $(NAME) all-lib: $(NAME)
......
...@@ -28,7 +28,7 @@ endif ...@@ -28,7 +28,7 @@ endif
ifneq ($(build_os),mingw32) ifneq ($(build_os),mingw32)
abs_builddir := $(shell pwd) abs_builddir := $(shell pwd)
else else
abs_builddir := $(shell pwd -W) abs_builddir := $(shell sh -c "pwd -W")
endif endif
all install installdirs uninstall distprep: all install installdirs uninstall distprep:
...@@ -73,7 +73,7 @@ $(top_builddir)/src/port/pg_config_paths.h: $(top_builddir)/src/Makefile.global ...@@ -73,7 +73,7 @@ $(top_builddir)/src/port/pg_config_paths.h: $(top_builddir)/src/Makefile.global
# $(srcdir) to the build directory. # $(srcdir) to the build directory.
ifdef VPATH ifdef VPATH
remaining_files_src := $(wildcard $(srcdir)/*/*.pgc) $(wildcard $(srcdir)/expected/*.c) $(wildcard $(srcdir)/expected/*.stdout) $(wildcard $(srcdir)/expected/*.stderr) remaining_files_src := $(wildcard $(srcdir)/*/*.pgc) $(wildcard $(srcdir)/expected/*.c) $(wildcard $(srcdir)/expected/*.stdout) $(wildcard $(srcdir)/expected/*.stderr) $(srcdir)/resultmap
remaining_files_build := $(patsubst $(srcdir)/%, $(abs_builddir)/%, $(remaining_files_src)) remaining_files_build := $(patsubst $(srcdir)/%, $(abs_builddir)/%, $(remaining_files_src))
all: $(remaining_files_build) all: $(remaining_files_build)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment