]> granicus.if.org Git - postgresql/commitdiff
Add $CFLAGS support to pgrminclude.
authorBruce Momjian <bruce@momjian.us>
Tue, 11 Jul 2006 19:34:34 +0000 (19:34 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 11 Jul 2006 19:34:34 +0000 (19:34 +0000)
src/tools/pginclude/pgrminclude

index 6a318ece93443f5dcfd2c5b256753a40cd811e34..6199b268666fa8e03e00e4340ccf927ab14b8de8 100755 (executable)
@@ -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 ]