Re: [PATCH] Teach Makefile to respect external variables: CFLAGS and others.
- From
Sam Ravnborg <sam@ravnborg.org>
- Date
- Jun 13, 2007, 06:12 UTC
- Message-ID
- <20070613061234.GA20648@uranus.ravnborg.org>
- In-Reply-To
- <20070613054229.GM86872@void.codelabs.ru>
On Wed, Jun 13, 2007 at 09:42:30AM +0400, Eygene Ryabinkin wrote:
> If one is not using the configure script, then there is no way to > redefine variables CFLAGS, LFLAGS, CC, AR, TAR, INSTALL, RPMBUILD, > TCL_PATCH and TCLTK_PATH. This shouldn't be so, since these variables > can be manually set by user and we should respect them.
make distingush between environment variables and make variables. So for make there is a big difference between:
export FOO=foobar make
and make FOO=foobar
The latter will work as expected without your changes. And the good part about this is that some random environment variables does not influence the build.
Sam