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

Commitd399f1b

Browse files
committed
Improve compile line for tool.
1 parent54485d9 commitd399f1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/tools/pginclude/pgcompinclude

Lines changed: 3 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.4 2006/07/1017:11:43 momjian Exp $
4+
# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.5 2006/07/1018:39:32 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,8 @@ do
1313
echo "void include_test() {" >>/tmp/$$.c
1414
pgdefine "$FILE" >>/tmp/$$.c
1515
echo "}" >>/tmp/$$.c
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
16+
cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations \
17+
-I/pg/include -I/pg/backend -I`dirname $FILE` -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
1718
if [ "$?" -ne 0 ]
1819
thenecho "$FILE"
1920
if [ "$1" = "-v" ]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp