Skip to content

Commit 67a4120

Browse files
committed
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.
1 parent 8463195 commit 67a4120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/test/Makefile.regress

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ override LIBS := -lecpg -lpgtypes $(filter -l%, $(libpq)) $(LIBS) $(PTHREAD_LIBS
1212
ECPG = ../../preproc/ecpg --regression -I$(srcdir)/../../include -I$(srcdir)
1313

1414
# Files that most or all ecpg preprocessor test outputs depend on
15-
ECPG_TEST_DEPENDENCIES = ../../preproc/ecpg \
15+
ECPG_TEST_DEPENDENCIES = ../../preproc/ecpg$(X) \
1616
$(srcdir)/../regression.h \
1717
$(srcdir)/../../include/sqlca.h \
1818
$(srcdir)/../../include/sqlda.h \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy