aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/src/sgml/installation.sgml2
-rw-r--r--src/Makefile.global.in1
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
index 1b32d5ca62c..c39bcb3ee7c 100644
--- a/doc/src/sgml/installation.sgml
+++ b/doc/src/sgml/installation.sgml
@@ -1937,7 +1937,7 @@ build-postgresql:
it will break many of <filename>configure</filename>'s built-in tests. To add
such flags, include them in the <envar>COPT</envar> environment variable
while running <filename>make</filename>. The contents of <envar>COPT</envar>
- are added to both the <envar>CFLAGS</envar> and <envar>LDFLAGS</envar>
+ are added to the <envar>CFLAGS</envar>, <envar>CXXFLAGS</envar>, and <envar>LDFLAGS</envar>
options set up by <filename>configure</filename>. For example, you could do
<screen>
<userinput>make COPT='-Werror'</userinput>
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index a00c909681e..83b91fe9167 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -741,6 +741,7 @@ endif
#
ifdef COPT
CFLAGS += $(COPT)
+ CXXFLAGS += $(COPT)
LDFLAGS += $(COPT)
endif