Skip to content

Commit d66b31c

Browse files
committed
pg_regress: Use target-specific variable instead of overriding make rule
Use a target-specific variable to add to CPPFLAGS instead of writing a custom .c -> .o rule. This will ensure that dependency tracking is used when enabled.
1 parent 5ece8ec commit d66b31c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/regress/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pg_regress$(X): pg_regress.o pg_regress_main.o | submake-libpgport
4848

4949
# dependencies ensure that path changes propagate
5050
pg_regress.o: pg_regress.c $(top_builddir)/src/port/pg_config_paths.h
51-
$(CC) $(CFLAGS) $(CPPFLAGS) -I$(top_builddir)/src/port $(EXTRADEFS) -c -o $@ $<
51+
pg_regress.o: override CPPFLAGS += -I$(top_builddir)/src/port $(EXTRADEFS)
5252

5353
$(top_builddir)/src/port/pg_config_paths.h: $(top_builddir)/src/Makefile.global
5454
$(MAKE) -C $(top_builddir)/src/port pg_config_paths.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