[Buildroot] [PATCH] sawman: Link using gcc instead of ld

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Dec 9 17:57:31 UTC 2013


Dear Markos Chandras,

On Mon, 9 Dec 2013 16:48:53 +0000, Markos Chandras wrote:

> > Adding:
> >
> > LD = $(CC) -nostdlib
> >
> > to Makefile.am and also:
> >
> > SAWMAN_AUTORECONF = YES
> >
> > to sawman.mk fixes the problem.
> >
> > What do you think about this solution?
> 
> Yes this is preferred. You should patch configure.ac or Makefile.am (if 
> they are available) and run autoreconf as suggested.

I definitely agree that patching the Makefile.am and using
<pkg>_AUTORECONF is the preferred way.

However, I find it weird that we need to add LD = $(CC) -nostdlib in
the Makefile.am. There are plenty of other autotools-based packages
that generate libraries, including private libraries, and they work
just fine. Isn't there a better fix that can hopefully be upstreamed?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list