summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-10-20 00:55:15 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2010-10-20 00:55:15 -0400
commit2f4b1498bcd025ce96f460416ccb68b2b992c485 (patch)
tree1d0c50a473b5e4bc0f0f2d5185c311de1d59e728
parent4b67d83da5930f966b651ec78d3c0b6f8730041f (diff)
Fix ecpg test building process to not generate *.dSYM junk on Macs.
The trick is to not try to build executables directly from .c files, but to always build the intermediate .o files. For obscure reasons, Darwin's version of gcc will leave debug cruft behind in the first case but not the second. Per complaint from Robert Haas.
-rw-r--r--src/interfaces/ecpg/test/Makefile.regress4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/test/Makefile.regress b/src/interfaces/ecpg/test/Makefile.regress
index c5e017e74a9..a130482d29e 100644
--- a/src/interfaces/ecpg/test/Makefile.regress
+++ b/src/interfaces/ecpg/test/Makefile.regress
@@ -8,11 +8,11 @@ override LIBS := -lecpg -lpgtypes $(libpq) $(LIBS) $(PTHREAD_LIBS)
ECPG = ../../preproc/ecpg -I$(srcdir)/../../include
%: %.c
- $(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) $(LIBS) -o $@
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
+ $(CC) $(CPPFLAGS) $(CFLAGS) $*.o $(LDFLAGS) $(LIBS) -o $@
%.c: %.pgc ../regression.h
$(ECPG) -o $@ -I$(srcdir) $<
clean:
rm -f $(TESTS) $(TESTS:%=%.o) $(TESTS:%=%.c)
-