This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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] Updated plugin support for bfd


> I have updated the patch to reflect that.

Now with the missing file.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
diff --git a/bfd/aclocal.m4 b/bfd/aclocal.m4
index 208fad9..60a84a8 100644
--- a/bfd/aclocal.m4
+++ b/bfd/aclocal.m4
@@ -867,6 +867,7 @@ m4_include([../config/po.m4])
 m4_include([../config/proginstall.m4])
 m4_include([../config/progtest.m4])
 m4_include([../config/stdint.m4])
+m4_include([../config/solaris-lfs.m4])
 m4_include([../libtool.m4])
 m4_include([../ltoptions.m4])
 m4_include([../ltsugar.m4])
diff --git a/bfd/configure.in b/bfd/configure.in
index c7dd581..c508cb5 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -44,24 +44,7 @@ if test "$plugins" = "yes"; then
   enable_targets="$enable_targets plugin"
 fi
 
-case "${target}" in
-changequote(,)dnl
-  sparc-*-solaris*|i[3-7]86-*-solaris*)
-changequote([,])dnl
-    # On native 32bit sparc and ia32 solaris, large-file and procfs support
-    # are mutually exclusive; and without procfs support, the elf module
-    # cannot provide certain routines such as elfcore_write_prpsinfo
-    # or elfcore_write_prstatus.  So unless the user explicitly requested
-    # large-file support through the --enable-largefile switch, disable
-    # large-file support in favor of procfs support.
-    if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
-      if test "$plugins" = "no"; then
-        enable_largefile="no"
-      fi
-    fi
-    ;;
-esac
-
+AC_SOLARIS_LFS
 AC_SYS_LARGEFILE
 
 AC_ARG_ENABLE(64-bit-bfd,
diff --git a/binutils/aclocal.m4 b/binutils/aclocal.m4
index 39857e5..2b33823 100644
--- a/binutils/aclocal.m4
+++ b/binutils/aclocal.m4
@@ -892,6 +892,7 @@ m4_include([../config/override.m4])
 m4_include([../config/po.m4])
 m4_include([../config/proginstall.m4])
 m4_include([../config/progtest.m4])
+m4_include([../config/solaris-lfs.m4])
 m4_include([../libtool.m4])
 m4_include([../ltoptions.m4])
 m4_include([../ltsugar.m4])
diff --git a/binutils/configure.in b/binutils/configure.in
index 3fdb349..55fcc22 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -25,22 +25,7 @@ AS_HELP_STRING([--enable-plugins], [linker plugins (defaults no)]),
  esac],
 [plugins=no])
 
-case "${target}" in
-changequote(,)dnl
-  sparc-*-solaris*|i[3-7]86-*-solaris*)
-changequote([,])dnl
-    # See comment in bfd/configure.in for the reason for this test.
-    # PR 9992/binutils: We have to duplicate the behaviour of bfd's
-    # configure script so that the utilities in this directory agree
-    # on the size of structures used to describe files.
-    if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
-      if test "$plugins" = "no"; then
-        enable_largefile="no"
-      fi
-    fi
-    ;;
-esac
-
+AC_SOLARIS_LFS
 AC_SYS_LARGEFILE
 LT_INIT
 
diff --git a/config/solaris-lfs.m4 b/config/solaris-lfs.m4
new file mode 100644
index 0000000..e9d0c2f
--- /dev/null
+++ b/config/solaris-lfs.m4
@@ -0,0 +1,20 @@
+AC_DEFUN([AC_SOLARIS_LFS],
+[
+  case "${target}" in
+  changequote(,)dnl
+    sparc-*-solaris*|i[3-7]86-*-solaris*)
+  changequote([,])dnl
+      # On native 32bit sparc and ia32 solaris, large-file and procfs support
+      # are mutually exclusive; and without procfs support, the elf module
+      # cannot provide certain routines such as elfcore_write_prpsinfo
+      # or elfcore_write_prstatus.  So unless the user explicitly requested
+      # large-file support through the --enable-largefile switch, disable
+      # large-file support in favor of procfs support.
+      if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
+        if test "$plugins" = "no"; then
+          enable_largefile="no"
+        fi
+      fi
+      ;;
+  esac
+])

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