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

CFLAGS usage

From
MWMorten Welinder <mwelinder@gmail.com>
Date
Nov 4, 2005, 15:21 UTC
Message-ID
<118833cc0511040721w7f3990fbw631feaa6a4bda936@mail.gmail.com>

Various stuff is being added to CFLAGS, but CFLAGS is not being used after being composed in CFLAGS_ALL.

Morten
grep CFLAGS Makefile
CFLAGS = -g -O2 -Wall
ALL_CFLAGS = $(CFLAGS) $(PLATFORM_DEFINES) $(DEFINES)
                CFLAGS += -I$(CURLDIR)/include
                CFLAGS += -I$(OPENSSLDIR)/include
                CFLAGS += -I$(ICONVDIR)/include
        $(CC) -o $*.o -c $(ALL_CFLAGS) $<
        $(CC) -o $*.o -c $(ALL_CFLAGS) $<
        $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
        $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIB_FILE) $(SIMPLE_LIB)
        $(CC) -c $(ALL_CFLAGS) \
        $(CC) $(ALL_CFLAGS) -o $@ test-date.c date.o ctype.o
        $(CC) $(ALL_CFLAGS) -o $@ $^
        for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i; done
Next: David Brown
Message 1 of 6 in “CFLAGS usage”
  1. Morten WelinderNov 4, 2005
  2. David BrownNov 4, 2005
  3. Junio C HamanoNov 4, 2005
  4. David BrownNov 4, 2005
  5. Junio C HamanoNov 4, 2005
  6. Simplify CFLAGS/DEFINES in MakefileJunio C Hamano, Nov 5, 2005

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.