summaryrefslogtreecommitdiff
path: root/src/common/config_info.c
diff options
context:
space:
mode:
authorPeter Eisentraut2020-02-10 16:12:46 +0000
committerPeter Eisentraut2020-02-10 18:23:41 +0000
commitb691c189c671ca9b88743ed6546b60641e5199e4 (patch)
tree9ccc6bcf457b207ccc447ec9ce77dd9ee200606e /src/common/config_info.c
parent11de6c903da99a4b2220acfa776fc26c7f384ccc (diff)
Simplify passing of configure arguments to pg_config
The previous system had configure put the value into the makefiles and then have the makefiles pass them to the build of pg_config. That was put in place when pg_config was a shell script. We can simplify that by having configure put the value into pg_config.h directly. This also makes the standard build system match how the MSVC build system already does it. Discussion: https://www.postgresql.org/message-id/flat/6e457870-cef5-5f1d-b57c-fc89cfb8a788%402ndquadrant.com
Diffstat (limited to 'src/common/config_info.c')
-rw-r--r--src/common/config_info.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common/config_info.c b/src/common/config_info.c
index c75a642fb2c..8a5dc64ec36 100644
--- a/src/common/config_info.c
+++ b/src/common/config_info.c
@@ -124,11 +124,7 @@ get_configdata(const char *my_exec_path, size_t *configdata_len)
i++;
configdata[i].name = pstrdup("CONFIGURE");
-#ifdef VAL_CONFIGURE
- configdata[i].setting = pstrdup(VAL_CONFIGURE);
-#else
- configdata[i].setting = pstrdup(_("not recorded"));
-#endif
+ configdata[i].setting = pstrdup(CONFIGURE_ARGS);
i++;
configdata[i].name = pstrdup("CC");