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

[PATCH] Use LDFLAGS instead of ALL_CFLAGS when linking.

From
Andreas Ericsson <ae@op5.se>
Date
Oct 29, 2005, 07:30 UTC
Message-ID
<4363250C.8030200@op5.se>

The patch says it all really. It lets users specify their own linking options and unclutters the build-output somewhat.

index 5b0306d..f547d45 100644
--- a/Makefile
+++ b/Makefile
@@ -360,7 +360,7 @@ git-cherry-pick: git-revert
         $(CC) -o $*.o -c $(ALL_CFLAGS) $<

  git-%$X: %.o $(LIB_FILE)
-       $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
+       $(CC) -o $@ $(filter %.o,$^) $(LIBS) $(LDFLAGS)

  git-mailinfo$X : SIMPLE_LIB += $(LIB_4_ICONV)
  $(SIMPLE_PROGRAMS) : $(LIB_FILE)
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Next: H. Peter Anvin
Message 1 of 2 in “Use LDFLAGS instead of ALL_CFLAGS when linking.”
  1. Use LDFLAGS instead of ALL_CFLAGS when linking.Andreas Ericsson, Oct 29, 2005
  2. H. Peter AnvinOct 29, 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.