diff options
author | Bruce Momjian | 2006-07-11 20:12:29 +0000 |
---|---|---|
committer | Bruce Momjian | 2006-07-11 20:12:29 +0000 |
commit | e5adf528b17909f0fbe6c8492e9dda6186b6172e (patch) | |
tree | efd7640af22cecacfb530cda58720422a41d192f | |
parent | 07828ea3ad8039d2892b403abfaedac0857e9552 (diff) |
Improve pginclude compile flags.
-rwxr-xr-x | src/tools/pginclude/pgcompinclude | 6 | ||||
-rwxr-xr-x | src/tools/pginclude/pgrminclude | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/tools/pginclude/pgcompinclude b/src/tools/pginclude/pgcompinclude index eb3e44d90c..8c89e86883 100755 --- a/src/tools/pginclude/pgcompinclude +++ b/src/tools/pginclude/pgcompinclude @@ -13,8 +13,10 @@ do echo "void include_test() {" >>/tmp/$$.c pgdefine "$FILE" >>/tmp/$$.c echo "}" >>/tmp/$$.c - cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations \ - -I/pg/include -I/pg/backend -I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1 + cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes \ + -Wmissing-declarations -I/pg/include -I/pg/backend \ + -I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c \ + -o /tmp/$$.o >/tmp/$$ 2>&1 if [ "$?" -ne 0 ] then echo "$FILE" if [ "$1" = "-v" ] diff --git a/src/tools/pginclude/pgrminclude b/src/tools/pginclude/pgrminclude index 17657317a8..ccffe79ad9 100755 --- a/src/tools/pginclude/pgrminclude +++ b/src/tools/pginclude/pgrminclude @@ -57,7 +57,8 @@ do 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 + -I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c \ + -o /tmp/$$.o >/tmp/$$ 2>&1 if [ "$?" -eq 0 ] then echo "$FILE $INCLUDE" grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" >/tmp/$$b |