* configure.in configure: Check if host has libm. Make sure we

are using gcc when using the -export-dynamic option.  Fixes a
	problem with building under Solaris/SunPro cc.
This commit is contained in:
Stu Grossman 1997-01-22 01:12:19 +00:00
parent f95251f068
commit ef6c51d13f
3 changed files with 275 additions and 487 deletions

View File

@ -1,3 +1,9 @@
Tue Jan 21 17:01:20 1997 Stu Grossman (grossman@lisa.cygnus.com)
* configure.in configure: Check if host has libm. Make sure we
are using gcc when using the -export-dynamic option. Fixes a
problem with building under Solaris/SunPro cc.
Mon Jan 20 13:52:13 1997 Mark Alexander <marka@cygnus.com>
* config/mips/{embed,embed64,embedl,embedl64}.mt:

749
gdb/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -79,6 +79,9 @@ if test $gdb_cv_have_fpregset_t = yes; then
AC_DEFINE(HAVE_FPREGSET_T)
fi
dnl See if host has libm. This is usually needed by simulators.
AC_CHECK_LIB(m, main)
dnl See if compiler supports "long long" type.
AC_MSG_CHECKING(for long long support in compiler)
@ -175,7 +178,9 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_THREAD_DB_LIB)
CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
if test "$GCC" = "yes" ; then
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
fi
else
AC_MSG_RESULT(no)
fi