From 4399a56be2e20b4a0862c6d67cf20a497571ac9d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 19 Oct 2011 21:28:27 +0000 Subject: sim: dv-cfi: check for log2 support in libm when enabled The dv-cfi model uses log2() internally, so make sure we automatically link in libm when required. Signed-off-by: Mike Frysinger --- sim/common/ChangeLog | 4 ++++ sim/common/acinclude.m4 | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'sim/common') diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 3ea3422..b5c5ed4 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2011-10-19 Mike Frysinger + + * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi. + 2011-10-18 John Wehle (tiny patch) * sim-profile.c (profile_info): Only print the title once. diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4 index 11398f5..9979746 100644 --- a/sim/common/acinclude.m4 +++ b/sim/common/acinclude.m4 @@ -623,7 +623,11 @@ if test "$sim_hw_p" != yes; then fi if test x"$silent" != x"yes"; then echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" -fi])dnl +fi]) +dnl Some devices require extra libraries. +case " $hardware " in + *" cfi "*) AC_CHECK_LIB(m, log2);; +esac ]) AC_SUBST(sim_hw_cflags) AC_SUBST(sim_hw_objs) -- cgit v1.1