Commit 1b9a4f1e authored by roylee17's avatar roylee17 Committed by Peter Korsgaard
Browse files

stress: honor the BR2_PREFER_STATIC_LIB preference



Stress is linked statically if the --enable-static is specified.
However, this option is always specified in the global
SHARED_STATIC_LIBS_OPTS to tell packages to build static libraries,
if supported.

If the BR2_PREFER_STATIC_LIB is not defined, we have to specify
--disable-static explicitly to get stress linked dynamically.

Signed-off-by: default avatarTzu-Jung Lee <tjlee@ambarella.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 63b2ee6b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -10,4 +10,14 @@ STRESS_VERSION = 1.0.4
STRESS_SITE    = http://weather.ou.edu/~apw/projects/stress
STRESS_AUTORECONF = YES

# Stress is linked statically if the --enable-static is specified.
# However, this option is always specified in the global
# SHARED_STATIC_LIBS_OPTS to tell packages to build static libraries,
# if supported.
#
# If the BR2_PREFER_STATIC_LIB is not defined, we have to specify
# --disable-static explicitly to get stress linked dynamically.
STRESS_CONF_OPT = \
	$(if $(BR2_PREFER_STATIC_LIB),,--disable-static)

$(eval $(autotools-package))