mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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
This commit is contained in:
6
configure
vendored
6
configure
vendored
@ -777,7 +777,6 @@ build_vendor
|
||||
build_cpu
|
||||
build
|
||||
PG_MAJORVERSION
|
||||
configure_args
|
||||
target_alias
|
||||
host_alias
|
||||
build_alias
|
||||
@ -2798,7 +2797,10 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
||||
|
||||
|
||||
|
||||
configure_args=$ac_configure_args
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define CONFIGURE_ARGS "$ac_configure_args"
|
||||
_ACEOF
|
||||
|
||||
|
||||
PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
|
||||
|
Reference in New Issue
Block a user