This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix --enable-plugins --without-python


> gdb/
> 2010-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	Fix configure --enable-plugins --without-python.
> 	* configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
> 	* configure: Regenerate.

Grumpf! It would be nice if BFD was telling us which libraries we need
to link against bfd, just as Gtk+, Python, etc, do.

I'm a little concern that this is a bit primitive, and good enough only
on GNU/Linux or maybe Unix.  Or rather, that this might break the build
on some platforms such as Windows.  But that's not the case, since
the user would need to use --enable-plugins to enable plugins (it's
not automatic), so I don't see a better solution that's actually
worth the effort.

> +if test "$plugins" = "yes"; then
> +  LIBS="-ldl $LIBS"
> +fi

A comment explaining the dependency would be nice (likewise below). 

> +  if test "$plugins" = "yes"; then
> +    OLD_LIBS="-ldl $OLD_LIBS"
> +  fi

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]