aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-07-01 07:30:38 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-07-01 07:30:55 +0200
commit0c3930d0768943ad1dedb5a6ace250ce9b65915c (patch)
treebf1957656d31961cbe21e2147acac22e720bd875 /src
parent9004abf6206e815d25b7b763c756cf97b457f3cd (diff)
downloadpostgresql-0c3930d0768943ad1dedb5a6ace250ce9b65915c.tar.gz
postgresql-0c3930d0768943ad1dedb5a6ace250ce9b65915c.zip
Apply COPT to CXXFLAGS as well
The main use of that make variable is to pass in -Werror. It makes sense to apply this to C++ as well. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/fe3e200c-edee-44e0-a6e3-d45dca72873b%40eisentraut.org
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.global.in1
1 files changed, 1 insertions, 0 deletions
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