mirror of
https://github.com/postgres/postgres.git
synced 2026-03-10 02:01:23 -04:00
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.
This commit is contained in:
parent
4b67d83da5
commit
2f4b1498bc
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue