Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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

+1
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)