[Buildroot] Question about openssh.mk

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Sep 8 20:52:58 UTC 2014


Hello,

On Mon, 8 Sep 2014 20:46:05 +0000, ANDY KENNEDY wrote:
> > Yes, that's what we want to do: openssh uses $(LD) and
> > $(TARGET_LDFLAGS) as if they were the compiler. In which case have you
> > identified this to not work?
> 
> Okay, then it should probably be LDFAGS="$(TARGET_CFLAGS) $(TARGET_LDFLAGS)".

No, because $(TARGET_LDFLAGS) may contain flags that are not valid for
$(TARGET_CC).

> For some reason, it breaks on every third or so build.  I dunno why.
> Working on it.  I don't even have enough info to tell you where it is
> breaking (at the moment).  I'll keep you advised.
> 
> It probably has something to do with the fact that I use
> BR2_PREFER_STATIC_LIB=y
> Though, I have built with this several times today and I only got the
> error once out of three times.  It is complaining that it cannot build
> a shared object with openssl.a as it is statically linked.
> 
> Like I said, I don't really have enough info to tell you what is broken.

Weird. If it happens once in a while, it might look like a parallel
build issue.

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



More information about the buildroot mailing list