[Buildroot] BR2_PREFER_STATIC_LIB and LDFLAGS+= -static
ANDY KENNEDY
ANDY.KENNEDY at adtran.com
Fri Nov 2 17:06:41 UTC 2012
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
More information about the buildroot
mailing list