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. -- binki Look out for missing apostrophes!
pgpvkEV8OYh2c.pgp
Description: PGP signature
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
