[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] Use $(CC) when linking instead of $(LD) and use $(CFLAGS)
From: Mike Frysinger <vapier () gentoo ! org>
Date: 2011-03-25 18:39:22
Message-ID: AANLkTik9h=ch0Mdh_p_OuBTGz2EQ621Sd_3FxO7vTaxR () mail ! gmail ! com
[Download RAW message or body]
On Fri, Mar 25, 2011 at 2:48 AM, Nathan Phillip Brink wrote:
> On Thu, Mar 24, 2011 at 10:25:25PM -0700, Dan Fandrich wrote:
>> On Thu, Mar 24, 2011 at 07:22:18PM -0400, Nathan Phillip Brink wrote:
>> > To others,
>> >
>> > Is there any reason to persist in directly calling ld instead of using
>> > the compiler driver (gcc)?
>>
>> Are there any toolchains out there where there compiler driver won't do the
>> linking, but require a separate linker? If so, then it would be useful
>> to at least leave in a hook to allow them to be used as well.
>
> OK, I could do this by renaming $(CC) during the linking steps to
> $(CCLD). Then I could create more *FLAGS with the following
> Makefile-level defaults:
>
> CCLDFLAGS = $(CFLAGS) $(LDFLAGS)
> EXTRA_CCLDFLAGS = $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
>
> and use those with CCLD. I'll resend the patch tomorrow with these
> modifications if they'd be satisfactory.
LD should be set to the compiler driver by default. no need for yet
another weird non-standard variable like "CCLD".
-mike
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic