Skip to content

Commit 44141cd

Browse files
committed
PG-1879 Just add extra CLFAG when building xlogreader.c
Writing the whole compiler command from scratch only makes it more risky that we miss something.
1 parent 1107aa4 commit 44141cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/pg_tde/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ src/bin/pg_tde_restore_encrypt: src/bin/pg_tde_restore_encrypt.o xlogreader.o $(
101101
xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/%
102102
rm -f $@ && $(LN_S) $< .
103103

104-
xlogreader.o: xlogreader.c
105-
$(CC) $(CPPFLAGS) -DFRONTEND -c $< -o $@
104+
xlogreader.o: CFLAGS += -DFRONTEND
106105

107106
# Fetches typedefs list for PostgreSQL core and merges it with typedefs defined in this project.
108107
# https://wiki.postgresql.org/wiki/Running_pgindent_on_non-core_code_or_development_code

0 commit comments

Comments
 (0)