{"thread":{"id":"2269","subject":"[PATCH] Use LDFLAGS instead of ALL_CFLAGS when linking.","startedAt":"2005-10-29T07:30:20Z","lastAt":"2005-10-29T16:24:03Z","messageCount":2,"participants":["Andreas Ericsson","H. Peter Anvin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"10789","messageId":"4363250C.8030200@op5.se","threadId":"2269","inReplyTo":null,"subject":"[PATCH] Use LDFLAGS instead of ALL_CFLAGS when linking.","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2005-10-29T07:30:20Z","receivedAt":"2005-10-29T07:30:20Z","isPatch":true,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"The patch says it all really. It lets users specify their own linking \noptions and unclutters the build-output somewhat.\n\nindex 5b0306d..f547d45 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -360,7 +360,7 @@ git-cherry-pick: git-revert\n         $(CC) -o $*.o -c $(ALL_CFLAGS) $<\n\n  git-%$X: %.o $(LIB_FILE)\n-       $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)\n+       $(CC) -o $@ $(filter %.o,$^) $(LIBS) $(LDFLAGS)\n\n  git-mailinfo$X : SIMPLE_LIB += $(LIB_4_ICONV)\n  $(SIMPLE_PROGRAMS) : $(LIB_FILE)\n\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"10790","messageId":"4363A223.4040806@zytor.com","threadId":"2269","inReplyTo":"4363250C.8030200@op5.se","subject":"Re: [PATCH] Use LDFLAGS instead of ALL_CFLAGS when linking.","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-10-29T16:24:03Z","receivedAt":"2005-10-29T16:24:03Z","isPatch":true,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"Andreas Ericsson wrote:\n> The patch says it all really. It lets users specify their own linking \n> options and unclutters the build-output somewhat.\n> \n> index 5b0306d..f547d45 100644\n> --- a/Makefile\n> +++ b/Makefile\n> @@ -360,7 +360,7 @@ git-cherry-pick: git-revert\n>         $(CC) -o $*.o -c $(ALL_CFLAGS) $<\n> \n>  git-%$X: %.o $(LIB_FILE)\n> -       $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)\n> +       $(CC) -o $@ $(filter %.o,$^) $(LIBS) $(LDFLAGS)\n> \n\nTypically $(LDFLAGS) comes before $(LIBS).  This is not insignificant, \nsince some people put library seach options into LDFLAGS.\n\n\t-hpa\n"}]}