From 43613aad1507e9c531cc7db94c6fb31a613bc4c0 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 10 Jul 2006 18:39:32 +0000 Subject: [PATCH] Improve compile line for tool. --- src/tools/pginclude/pgcompinclude | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/pginclude/pgcompinclude b/src/tools/pginclude/pgcompinclude index 90c2d82b2e..b77eeb6557 100755 --- a/src/tools/pginclude/pgcompinclude +++ b/src/tools/pginclude/pgcompinclude @@ -13,7 +13,8 @@ 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 -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`dirname $FILE` -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1 if [ "$?" -ne 0 ] then echo "$FILE" if [ "$1" = "-v" ] -- 2.39.5