Skip to content

Commit

Permalink
stress: honor the BR2_PREFER_STATIC_LIB preference
Browse files Browse the repository at this point in the history
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: Tzu-Jung Lee <tjlee@ambarella.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  • Loading branch information
roylee17 authored and jacmet committed Mar 4, 2013
1 parent 63b2ee6 commit 1b9a4f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package/stress/stress.mk
Expand Up @@ -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))

0 comments on commit 1b9a4f1

Please sign in to comment.