mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 08:42:38 -04:00
Add $CFLAGS support to pgrminclude.
This commit is contained in:
parent
1ddbfa16a8
commit
22269434a6
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
:
|
||||
# remove extra #include's
|
||||
|
||||
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.8 2006/07/11 19:31:29 momjian Exp $
|
||||
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.9 2006/07/11 19:34:34 momjian Exp $
|
||||
|
||||
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
|
||||
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
|
||||
|
|
@ -55,7 +55,7 @@ do
|
|||
fi
|
||||
echo "}" >>/tmp/$$.c
|
||||
|
||||
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
|
||||
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
|
||||
if [ "$?" -eq 0 ]
|
||||
|
|
|
|||
Loading…
Reference in a new issue