git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Matthias Lederhofer
Message 7 of 7 in “Teach Makefile to respect external variables: CFLAGS and others.”
  1. Teach Makefile to respect external variables: CFLAGS and others.Eygene Ryabinkin, Jun 13, 2007
  2. Junio C HamanoJun 13, 2007
  3. Eygene RyabinkinJun 13, 2007
  4. Junio C HamanoJun 13, 2007
  5. Eygene RyabinkinJun 13, 2007
  6. Matthias LederhoferJun 13, 2007
  7. Sam RavnborgJun 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.