File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
:
2
2
# report which #include files can not compile on their own
3
3
# takes -v option to display compile failure message and line numbers
4
- # $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.7 2006/07/11 20:12:29 momjian Exp $
4
+ # $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.8 2006/07/14 01:05:13 momjian Exp $
5
5
6
6
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
7
7
find . \( -name CVS -a -prune \) -o -name '*.h' -type f -print | while read FILE
13
13
echo "void include_test() {" >>/tmp/$$.c
14
14
pgdefine "$FILE" >>/tmp/$$.c
15
15
echo "}" >>/tmp/$$.c
16
- cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes \
16
+ cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
17
17
-Wmissing-declarations -I/pg/include -I/pg/backend \
18
- -I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c \
18
+ -I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -c /tmp/$$.c \
19
19
-o /tmp/$$.o >/tmp/$$ 2>&1
20
20
if [ "$?" -ne 0 ]
21
21
then echo "$FILE"
Original file line number Diff line number Diff line change 1
1
:
2
2
# remove extra #include's
3
3
4
- # $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.15 2006/07/13 18:25:09 momjian Exp $
4
+ # $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.16 2006/07/14 01:05:14 momjian Exp $
5
5
6
6
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
7
7
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
61
61
fi
62
62
echo "}" >>/tmp/$$.c
63
63
64
- cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes \
64
+ cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
65
65
-Wmissing-declarations -I/pg/include -I/pg/backend \
66
- -I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c \
66
+ -I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -c /tmp/$$.c \
67
67
-o /tmp/$$.o >/tmp/$$ 2>&1
68
68
if [ "$?" -eq 0 ]
69
69
then echo "$FILE $INCLUDE"
You can’t perform that action at this time.
0 commit comments