[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep 2.5: CFLAGS
From: |
Karl Berry |
Subject: |
grep 2.5: CFLAGS |
Date: |
Thu, 14 Mar 2002 09:35:07 -0500 |
In grep 2.5, under red hat [gnu/]linux 7.2, the CFLAGS variable ends up
getting assigned -I/usr/include/pcre. Thus, when I overrode with
CFLAGS=-g, the build failed (errors below).
I know many non-GNU programs don't allow overriding CFLAGS (they usually
pick some other variable name for users), but GNU distributions have
been pretty good about using CFLAGS, per the standard:
If there are C compiler options that _must_ be used for proper
compilation of certain files, do not include them in `CFLAGS'. Users
expect to be able to specify `CFLAGS' freely themselves.
No big deal obviously.
Thanks,
karl
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib
-DLOCALEDIR=\"/usr/local/gnu/share/locale\" -g -c `test -f search.c || echo
'./'`search.c
search.c:40:19: pcre.h: No such file or directory
search.c:596: parse error before '*' token
search.c:596: warning: data definition has no type or storage class
search.c:599: parse error before '*' token
search.c:599: warning: data definition has no type or storage class
search.c: In function `Pcompile':
search.c:611: `PCRE_MULTILINE' undeclared (first use in this function)
search.c:611: (Each undeclared identifier is reported only once
search.c:611: for each function it appears in.)
search.c:611: `PCRE_CASELESS' undeclared (first use in this function)
search.c:655: warning: assignment makes pointer from integer without a cast
search.c:659: warning: assignment makes pointer from integer without a cast
search.c: In function `Pexecute':
search.c:685: `PCRE_ERROR_NOMATCH' undeclared (first use in this function)
search.c:688: `PCRE_ERROR_NOMEMORY' undeclared (first use in this function)
make[2]: *** [search.o] Error 1