Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0c3930d

Browse filesBrowse 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
Copy full SHA for 0c3930d

File tree

Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-1
lines changed

‎doc/src/sgml/installation.sgml

Copy file name to clipboardExpand all lines: doc/src/sgml/installation.sgml
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/Makefile.global.in
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.