aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 0c62b46..c0fd0e1 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1719,6 +1719,13 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
[Define if using Solaris thread debugging.])
CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
+ # On SPARC CPUs, we also need to build sparc-sol-thread.
+ case ${host_cpu} in
+ sparc*)
+ CONFIG_OBS="${CONFIG_OBS} sparc-sol-thread.o"
+ CONFIG_SRCS="${CONFIG_SRCS} sparc-sol-thread.c"
+ ;;
+ esac
AC_CHECK_LIB(dl, dlopen)
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
# Sun randomly tweaked the prototypes in <proc_service.h>