aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-10-20 00:55:07 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2010-10-20 00:55:07 -0400
commitd4346e15b477cffae44e1f2fbe1f3235abdb458b (patch)
treec559f292f274433bfe82be9cb3c921b1e2a7ebd5 /src
parentd94d0a8c83715cb403267f0c89068781b706ddff (diff)
downloadpostgresql-d4346e15b477cffae44e1f2fbe1f3235abdb458b.tar.gz
postgresql-d4346e15b477cffae44e1f2fbe1f3235abdb458b.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/test/Makefile.regress3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/Makefile.regress b/src/interfaces/ecpg/test/Makefile.regress
index 847cded5b15..c979bf6f901 100644
--- a/src/interfaces/ecpg/test/Makefile.regress
+++ b/src/interfaces/ecpg/test/Makefile.regress
@@ -8,7 +8,8 @@ override LIBS := -lecpg -lpgtypes $(filter -l%, $(libpq)) $(LIBS) $(PTHREAD_LIBS
ECPG = ../../preproc/ecpg --regression -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) $<