diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3fa5738676a..464d412e21a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-04-18 Tristan Gingold + + * configure.ac (aix): Put -lpthread into libs. + * configure: Regenerate. + 2012-04-18 Tom Tromey * linespec.c (convert_linespec_to_sals): Don't use diff --git a/gdb/configure b/gdb/configure index bb2d3c0e81e..60652d67eed 100755 --- a/gdb/configure +++ b/gdb/configure @@ -16221,7 +16221,7 @@ $as_echo "$gdb_cv_have_aix_thread_debug" >&6; } if test $gdb_cv_have_aix_thread_debug = yes; then CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" CONFIG_OBS="${CONFIG_OBS} aix-thread.o" - CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" + LIBS="$LIBS -lpthdebug" # Older versions of AIX do not provide the declaration for # the getthrds function (it appears that it was introduced diff --git a/gdb/configure.ac b/gdb/configure.ac index de500cc578d..03cd6665167 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1682,7 +1682,7 @@ if test ${build} = ${host} -a ${host} = ${target} ; then if test $gdb_cv_have_aix_thread_debug = yes; then CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" CONFIG_OBS="${CONFIG_OBS} aix-thread.o" - CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" + LIBS="$LIBS -lpthdebug" # Older versions of AIX do not provide the declaration for # the getthrds function (it appears that it was introduced