Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0c3930d

Browse files
committed
Apply COPT to CXXFLAGS as well
The main use of that make variable is to pass in -Werror. It makessense 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 parent9004abf commit0c3930d

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 toboththe <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
ifdefCOPT
743743
CFLAGS +=$(COPT)
744+
CXXFLAGS +=$(COPT)
744745
LDFLAGS +=$(COPT)
745746
endif
746747

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp