diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-09 17:21:36 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-09 17:21:36 +0000 |
commit | b2259038ba4e56f7b9e09f4e909596ef2d795b40 (patch) | |
tree | ff9b7520adcd9f92a9854aa4c537b795f86d2ec0 /gdb/configure | |
parent | 679af3685c25fdebc0b661746a451e802ef56ea1 (diff) | |
download | fsf-binutils-gdb-b2259038ba4e56f7b9e09f4e909596ef2d795b40.zip fsf-binutils-gdb-b2259038ba4e56f7b9e09f4e909596ef2d795b40.tar.gz fsf-binutils-gdb-b2259038ba4e56f7b9e09f4e909596ef2d795b40.tar.bz2 |
* config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
* configure: Rebuild.
* configure.ac: Add somread.o to the build if BFD has SOM
support.
* somread.c: Include som/aout.h, not syms.h.
(som_symtab_read): Use som_external_symbol_dictionary_record.
Unpack records manually.
(_initialize_somread): Declare.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure index 6273193..c54709c 100755 --- a/gdb/configure +++ b/gdb/configure @@ -12674,6 +12674,58 @@ if test $gdb_cv_var_macho = yes; then CONFIG_OBS="$CONFIG_OBS machoread.o" fi +# Add SOM support to GDB, but only if BFD includes it. + + OLD_CFLAGS=$CFLAGS + OLD_LDFLAGS=$LDFLAGS + OLD_LIBS=$LIBS + # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS + # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We + # always want our bfd. + CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" + LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" + intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` + # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. + if test "$plugins" = "yes"; then + LIBS="-ldl $LIBS" + fi + LIBS="-lbfd -liberty $intl $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5 +$as_echo_n "checking for SOM support in BFD... " >&6; } +if test "${gdb_cv_var_som+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <stdlib.h> + #include "bfd.h" + #include "som.h" + +int +main () +{ +return bfd_som_attach_aux_hdr (NULL, 0, NULL); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gdb_cv_var_som=yes +else + gdb_cv_var_som=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5 +$as_echo "$gdb_cv_var_som" >&6; } + CFLAGS=$OLD_CFLAGS + LDFLAGS=$OLD_LDFLAGS + LIBS=$OLD_LIBS +if test $gdb_cv_var_som = yes; then + CONFIG_OBS="$CONFIG_OBS somread.o" +fi + # Add any host-specific objects to GDB. CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" |