Skip to content

Commit 332d406

Browse files
committed
Further cleanup for recent JSON-related commits.
The link commands in test_json_parser/Makefile were a long way shy of a load, as evidenced by buildfarm failures. Model them on pgxs.mk's PROGRAM rule. (Probably we should have put these two test programs in different subdirectories so we could actually use the PROGRAM rule. But I won't question that decision today.)
1 parent 2497a66 commit 332d406

File tree

1 file changed

+4
-6
lines changed
  • src/test/modules/test_json_parser

1 file changed

+4
-6
lines changed

src/test/modules/test_json_parser/Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ all: test_json_parser_incremental$(X) test_json_parser_perf$(X)
2323

2424
%.o: $(top_srcdir)/$(subdir)/%.c
2525

26-
PARSER_LIBS = $(top_builddir)/src/common/libpgcommon.a $(top_builddir)/src/port/libpgport.a
26+
test_json_parser_incremental$(X): test_json_parser_incremental.o
27+
$(CC) $(CFLAGS) $^ $(PG_LIBS_INTERNAL) $(LDFLAGS) $(LDFLAGS_EX) $(PG_LIBS) $(LIBS) -o $@
2728

28-
test_json_parser_incremental$(X): test_json_parser_incremental.o $(PARSER_LIBS)
29-
$(CC) $(CFLAGS) $^ -o $@
30-
31-
test_json_parser_perf$(X): test_json_parser_perf.o $(PARSER_LIBS)
32-
$(CC) $(CFLAGS) $^ -o $@
29+
test_json_parser_perf$(X): test_json_parser_perf.o
30+
$(CC) $(CFLAGS) $^ $(PG_LIBS_INTERNAL) $(LDFLAGS) $(LDFLAGS_EX) $(PG_LIBS) $(LIBS) -o $@
3331

3432
speed-check: test_json_parser_perf$(X)
3533
@echo Standard parser:

0 commit comments

Comments
 (0)