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 [email protected] http://lists.busybox.net/mailman/listinfo/busybox
