summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/modules/test_json_parser/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/modules/test_json_parser/Makefile b/src/test/modules/test_json_parser/Makefile
index 628256b6bbd..6f438629d8c 100644
--- a/src/test/modules/test_json_parser/Makefile
+++ b/src/test/modules/test_json_parser/Makefile
@@ -23,13 +23,11 @@ all: test_json_parser_incremental$(X) test_json_parser_perf$(X)
%.o: $(top_srcdir)/$(subdir)/%.c
-PARSER_LIBS = $(top_builddir)/src/common/libpgcommon.a $(top_builddir)/src/port/libpgport.a
+test_json_parser_incremental$(X): test_json_parser_incremental.o
+ $(CC) $(CFLAGS) $^ $(PG_LIBS_INTERNAL) $(LDFLAGS) $(LDFLAGS_EX) $(PG_LIBS) $(LIBS) -o $@
-test_json_parser_incremental$(X): test_json_parser_incremental.o $(PARSER_LIBS)
- $(CC) $(CFLAGS) $^ -o $@
-
-test_json_parser_perf$(X): test_json_parser_perf.o $(PARSER_LIBS)
- $(CC) $(CFLAGS) $^ -o $@
+test_json_parser_perf$(X): test_json_parser_perf.o
+ $(CC) $(CFLAGS) $^ $(PG_LIBS_INTERNAL) $(LDFLAGS) $(LDFLAGS_EX) $(PG_LIBS) $(LIBS) -o $@
speed-check: test_json_parser_perf$(X)
@echo Standard parser: