aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.ac
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-06-21 20:54:24 +0930
committerAlan Modra <amodra@gmail.com>2020-06-21 22:16:59 +0930
commit1e92785005ce880a5fac9d022f05cdcff91c3091 (patch)
treef6d8730b252a3c95aa37402fc625dddd80a5fb00 /bfd/configure.ac
parent0381901e629115f5f0d92a27fe74b1814f6f389a (diff)
downloadgdb-1e92785005ce880a5fac9d022f05cdcff91c3091.zip
gdb-1e92785005ce880a5fac9d022f05cdcff91c3091.tar.gz
gdb-1e92785005ce880a5fac9d022f05cdcff91c3091.tar.bz2
PR26132, ar creates invalid libraries for some targets with plugins enabled
PR 26132 * configure.ac: Disable plugins by default for some targets. * plugin.c: Comment typo fix. * configure: Regenerate.
Diffstat (limited to 'bfd/configure.ac')
-rw-r--r--bfd/configure.ac24
1 files changed, 24 insertions, 0 deletions
diff --git a/bfd/configure.ac b/bfd/configure.ac
index 755633b..1b67cb6 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -44,6 +44,30 @@ LT_INIT([dlopen])
# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
ACX_LARGEFILE
+changequote(,)dnl
+case "${target}" in
+ vax-*-netbsdelf*) ;;
+ *-*-*aout* | i[3-7]86-*-bsd* | i[3-7]86-*-msdos* | ns32k-*-* | \
+ pdp11-*-* | vax-*-*bsd*)
+changequote([,])dnl
+ if test "$plugins" = "yes"; then
+ if test "${enable_plugins+set}" = set; then
+ AC_MSG_WARN(Enabling plugins for AOUT is experimental)
+ else
+ plugins=no
+ fi
+ fi ;;
+ *-*-*vms* | \
+ powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*)
+ if test "$plugins" = "yes"; then
+ if test "${enable_plugins+set}" = set; then
+ AC_MSG_WARN(Enabling plugins may result in ar creating non-standard archives for ${target})
+ else
+ plugins=no
+ fi
+ fi ;;
+esac
+
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
AC_ARG_ENABLE(64-bit-bfd,