[Buildroot] [PATCH] stress: honor the BR2_PREFER_STATIC_LIB preference
roylee17 at gmail.com
Mon Mar 4 17:50:21 UTC 2013
I add comment in both commit log and makefile.
Please feel free to do necessary editing while committing.
On Tue, Mar 5, 2013 at 12:15 AM, Peter Korsgaard <jacmet at uclibc.org> wrote:
> >>>>> "T" == Tzu-Jung Lee <roylee17 at gmail.com> writes:
> T> ifeq ($(BR2_PREFER_STATIC_LIB),y)
> T> SHARED_STATIC_LIBS_OPTS=--enable-static --disable-shared
> T> TARGET_LDFLAGS += --static
> T> else
> T> SHARED_STATIC_LIBS_OPTS=--enable-static --enable-shared
> T> endif
> T> As you indicated, the --enable-static is given anyway in the
> T> SHARED_STATIC_LIBS_OPTS. Unfortunately, as long as the
> T> --enable-static is given, stress links the program statically,
> T> regardless how the --enable-shared or --disable-shared. In this
> T> case, stress would be linked statically regardless how the
> T> BR2_PREFER_STATIC_LIB specifies. So we need the patch to explicitly
> T> tell it link the program dynamically by appending/overriding with
> T> --disable-static.
> So you only need to pass --disable-static if !BR2_PREFER_STATIC_LIB?
> Could you please resend with a patch only doing that and a comment above
> it explaining why?
> Bye, Peter Korsgaard
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the buildroot