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

Commitf61f01f

Browse files
committed
Add $CFLAGS handling to pgcompinclude.
1 parent94a61ef commitf61f01f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/tools/pginclude/pgcompinclude

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:
22
# report which #include files can not compile on their own
33
# takes -v option to display compile failure message and line numbers
4-
# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.3 2006/07/10 17:08:38 momjian Exp $
4+
# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.4 2006/07/10 17:11:43 momjian Exp $
55

66
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
77
find . \( -name CVS -a -prune \) -o -name '*.h' -type f -print | while read FILE
@@ -13,7 +13,7 @@ do
1313
echo "void include_test() {" >>/tmp/$$.c
1414
pgdefine "$FILE" >>/tmp/$$.c
1515
echo "}" >>/tmp/$$.c
16-
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
16+
cc$CFLAGS-fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
1717
if [ "$?" -ne 0 ]
1818
thenecho "$FILE"
1919
if [ "$1" = "-v" ]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp