<div dir="ltr"><div style><div>    ifeq ($(BR2_PREFER_STATIC_LIB),y)</div><div>    SHARED_STATIC_LIBS_OPTS=--enable-static --disable-shared</div><div>    TARGET_LDFLAGS += --static</div><div>    else</div><div>    SHARED_STATIC_LIBS_OPTS=--enable-static --enable-shared</div>
<div>    endif</div><div><br></div><div style>As you indicated, the --enable-static is given anyway in the SHARED_STATIC_LIBS_OPTS.</div></div><div style>Unfortunately, as long as the --enable-static is given, stress links the program statically, regardless how the --enable-shared or --disable-shared.</div>
<div style>In this case, stress would be linked statically regardless how the BR2_PREFER_STATIC_LIB specifies.</div><div style>So we need the patch to explicitly tell it link the program dynamically by appending/overriding with --disable-static.</div>
<div style><br></div><div style>Thanks.<br></div><div style><br></div><div style>Roy</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 4, 2013 at 12:51 AM, Arnout Vandecappelle <span dir="ltr"><<a href="mailto:arnout@mind.be" target="_blank">arnout@mind.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On 02/03/13 07:35, Tzu-Jung Lee wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
From: roylee17 <<a href="mailto:roylee17@gmail.com" target="_blank">roylee17@gmail.com</a>><br>
<br>
Change-Id: I13f849e76557fac81b488ab26b4ac<u></u>8b999888bc1<br>
---<br>
  package/stress/<a href="http://stress.mk" target="_blank">stress.mk</a> | 3 +++<br>
  1 file changed, 3 insertions(+)<br>
<br>
diff --git a/package/stress/<a href="http://stress.mk" target="_blank">stress.mk</a> b/package/stress/<a href="http://stress.mk" target="_blank">stress.mk</a><br>
index 3a047b5..af79bf2 100644<br>
--- a/package/stress/<a href="http://stress.mk" target="_blank">stress.mk</a><br>
+++ b/package/stress/<a href="http://stress.mk" target="_blank">stress.mk</a><br>
@@ -10,4 +10,7 @@ STRESS_VERSION = 1.0.4<br>
  STRESS_SITE    = <a href="http://weather.ou.edu/~apw/projects/stress" target="_blank">http://weather.ou.edu/~apw/<u></u>projects/stress</a><br>
  STRESS_AUTORECONF = YES<br>
<br>
+STRESS_CONF_OPT = \<br>
+       $(if $(BR2_PREFER_STATIC_LIB),--<u></u>enable-static,--disable-<u></u>static)<br>
</blockquote>
<br></div></div>
 This is already part of the standard SHARED_STATIC_LIBS_OPTS, which is part of the argument list of configure. The difference being that in the shared case, --enable-static is still passed (to allow building static libraries, in case some client prefers to link statically after all).<br>

<br>
 Any reason why this doesn't work for stress?<br>
<br>
 Regards,<br>
 Arnout<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
+<br>
  $(eval $(autotools-package))<span class=""><font color="#888888"><br>
</font></span></blockquote><span class=""><font color="#888888">
<br>
<br>
-- <br>
Arnout Vandecappelle                          arnout at mind be<br>
Senior Embedded Software Architect            <a href="tel:%2B32-16-286500" value="+3216286500" target="_blank">+32-16-286500</a><br>
Essensium/Mind                                <a href="http://www.mind.be" target="_blank">http://www.mind.be</a><br>
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven<br>
LinkedIn profile: <a href="http://www.linkedin.com/in/arnoutvandecappelle" target="_blank">http://www.linkedin.com/in/<u></u>arnoutvandecappelle</a><br>
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F<br>
</font></span></blockquote></div><br></div></div>