Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static
@ 2012-11-02 17:06 ANDY KENNEDY
  2012-11-02 22:21 ` Arnout Vandecappelle
  0 siblings, 1 reply; 3+ messages in thread
From: ANDY KENNEDY @ 2012-11-02 17:06 UTC (permalink / raw)
  To: buildroot

All,

Near line 302 in package/Makefile.in was added TARGET_LDFLAGS += -static
to satisfy a request I made a while back.  This really needs to be
--static so that it filters down through autoconf the correct way.  If
-static is passed in LDFLAGS, autoconf regularly mishandles this by
setting a variable then never reconfiguring the package's make system
to build static.  However, the --static to ld is the same as -static,
but autoconf does not compare for --static, thus, packages get built as
desired.

Can someone change this in package/Makefile.in or should I submit a
dinky patch for this?

Thanks,
Andy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static
  2012-11-02 17:06 [Buildroot] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static ANDY KENNEDY
@ 2012-11-02 22:21 ` Arnout Vandecappelle
  2012-11-05 16:24   ` ANDY KENNEDY
  0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2012-11-02 22:21 UTC (permalink / raw)
  To: buildroot

On 11/02/12 18:06, ANDY KENNEDY wrote:
> All,
>
> Near line 302 in package/Makefile.in was added TARGET_LDFLAGS += -static
> to satisfy a request I made a while back.  This really needs to be
> --static so that it filters down through autoconf the correct way.  If
> -static is passed in LDFLAGS, autoconf regularly mishandles this by
> setting a variable then never reconfiguring the package's make system
> to build static.  However, the --static to ld is the same as -static,
> but autoconf does not compare for --static, thus, packages get built as
> desired.

  I don't really understand how it can go wrong...  Can you give an example
of a package with a configure script that handles it the wrong way?

>
> Can someone change this in package/Makefile.in or should I submit a
> dinky patch for this?

  Yes, please submit a patch.

  Regards,
  Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static
  2012-11-02 22:21 ` Arnout Vandecappelle
@ 2012-11-05 16:24   ` ANDY KENNEDY
  0 siblings, 0 replies; 3+ messages in thread
From: ANDY KENNEDY @ 2012-11-05 16:24 UTC (permalink / raw)
  To: buildroot

> On 11/02/12 18:06, ANDY KENNEDY wrote:
> > All,
> >
> > Near line 302 in package/Makefile.in was added TARGET_LDFLAGS += -static
> > to satisfy a request I made a while back.  This really needs to be
> > --static so that it filters down through autoconf the correct way.  If
> > -static is passed in LDFLAGS, autoconf regularly mishandles this by
> > setting a variable then never reconfiguring the package's make system
> > to build static.  However, the --static to ld is the same as -static,
> > but autoconf does not compare for --static, thus, packages get built as
> > desired.
> 
>   I don't really understand how it can go wrong...  Can you give an example
> of a package with a configure script that handles it the wrong way?

kexec, htop, proftpd, dropbear, etc.

kexec is special in that it also has kdump which I never figured out how
to get that make system to build it static (I drop it off, however, as I
don't need it).

> 
> >
> > Can someone change this in package/Makefile.in or should I submit a
> > dinky patch for this?
> 
>   Yes, please submit a patch.
> 
>   Regards,
>   Arnout
> 
> --
> Arnout Vandecappelle                               arnout at mind be
> Senior Embedded Software Architect                 +32-16-286540
> Essensium/Mind                                     http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-05 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-02 17:06 [Buildroot] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static ANDY KENNEDY
2012-11-02 22:21 ` Arnout Vandecappelle
2012-11-05 16:24   ` ANDY KENNEDY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox