Skip to content

Commit ef28e05

Browse files
committed
Fix bogus handling of $(X) (i.e., ".exe") in isolationtester Makefile.
I'm not sure why commit 1eb1dde seems to have made this start to fail on Cygwin when it never did before --- but nonetheless, the coding was pretty bogus, and unlike the way we handle $(X) anywhere else. Per buildfarm.
1 parent 19e3647 commit ef28e05

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/test/isolation/Makefile

+6-8
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) -I$(srcdir)/../regress $(CPPF
1313

1414
OBJS = specparse.o isolationtester.o
1515

16+
all: isolationtester$(X) pg_isolation_regress$(X)
17+
1618
submake-regress:
1719
$(MAKE) -C $(top_builddir)/src/test/regress pg_regress.o
1820

1921
pg_regress.o: | submake-regress
2022
rm -f $@ && $(LN_S) $(top_builddir)/src/test/regress/pg_regress.o .
2123

22-
pg_isolation_regress: isolation_main.o pg_regress.o
23-
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
24-
25-
all: isolationtester pg_isolation_regress
24+
pg_isolation_regress$(X): isolation_main.o pg_regress.o
25+
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
2626

27-
isolationtester: $(OBJS) | submake-libpq submake-libpgport
28-
$(CC) $(CFLAGS) $^ $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
27+
isolationtester$(X): $(OBJS) | submake-libpq submake-libpgport
28+
$(CC) $(CFLAGS) $^ $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
2929

3030
distprep: specparse.c specscanner.c
3131

@@ -36,8 +36,6 @@ distprep: specparse.c specscanner.c
3636
# important, otherwise make will choose the built-in rule for
3737
# gram.y=>gram.c.
3838

39-
all: isolationtester$(X) pg_isolation_regress$(X)
40-
4139
specparse.h: specparse.c ;
4240

4341
# specscanner is compiled as part of specparse

0 commit comments

Comments
 (0)