Skip to content

Commit 0c3930d

Browse files
committed
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
1 parent 9004abf commit 0c3930d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/src/sgml/installation.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ build-postgresql:
19371937
it will break many of <filename>configure</filename>'s built-in tests. To add
19381938
such flags, include them in the <envar>COPT</envar> environment variable
19391939
while running <filename>make</filename>. The contents of <envar>COPT</envar>
1940-
are added to both the <envar>CFLAGS</envar> and <envar>LDFLAGS</envar>
1940+
are added to the <envar>CFLAGS</envar>, <envar>CXXFLAGS</envar>, and <envar>LDFLAGS</envar>
19411941
options set up by <filename>configure</filename>. For example, you could do
19421942
<screen>
19431943
<userinput>make COPT='-Werror'</userinput>

src/Makefile.global.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ endif
741741
#
742742
ifdef COPT
743743
CFLAGS += $(COPT)
744+
CXXFLAGS += $(COPT)
744745
LDFLAGS += $(COPT)
745746
endif
746747

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy