[prev in list] [next in list] [prev in thread] [next in thread]
List: git
Subject: Re: [PATCH] Use LDFLAGS instead of ALL_CFLAGS when linking.
From: "H. Peter Anvin" <hpa () zytor ! com>
Date: 2005-10-29 16:24:03
Message-ID: 4363A223.4040806 () zytor ! com
[Download RAW message or body]
Andreas Ericsson wrote:
> 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)
>
Typically $(LDFLAGS) comes before $(LIBS). This is not insignificant,
since some people put library seach options into LDFLAGS.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic