mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-03 07:27:20 +02:00
Make ECPG test programs depend on "ecpg$(X)", not "ecpg".
Cygwin builds require this of dependencies pertaining to pattern rules. On Cygwin, stat("foo") in the absence of a file with that exact name can locate foo.exe. While GNU make uses stat() for dependencies of ordinary rules, it uses readdir() to assess dependencies of pattern rules. Therefore, a pattern rule dependency should match any underlying file name exactly. Back-patch to 9.4, where the dependency was introduced.
This commit is contained in:
parent
94c1dec0d9
commit
63d2c0c573
@ -12,7 +12,7 @@ override LIBS := -lecpg -lpgtypes $(filter -l%, $(libpq)) $(LIBS) $(PTHREAD_LIBS
|
|||||||
ECPG = ../../preproc/ecpg --regression -I$(srcdir)/../../include -I$(srcdir)
|
ECPG = ../../preproc/ecpg --regression -I$(srcdir)/../../include -I$(srcdir)
|
||||||
|
|
||||||
# Files that most or all ecpg preprocessor test outputs depend on
|
# Files that most or all ecpg preprocessor test outputs depend on
|
||||||
ECPG_TEST_DEPENDENCIES = ../../preproc/ecpg \
|
ECPG_TEST_DEPENDENCIES = ../../preproc/ecpg$(X) \
|
||||||
$(srcdir)/../regression.h \
|
$(srcdir)/../regression.h \
|
||||||
$(srcdir)/../../include/sqlca.h \
|
$(srcdir)/../../include/sqlca.h \
|
||||||
$(srcdir)/../../include/sqlda.h \
|
$(srcdir)/../../include/sqlda.h \
|
||||||
|
Loading…
Reference in New Issue
Block a user