[RFA] do not try large-files support by default on 32bit sparc-solaris
Joel Brobecker
brobecker@adacore.com
Thu Nov 13 22:07:00 GMT 2008
> That should only be done in a native configuration.
Yes, you're right. Here is a new version of the patch that only does
that for native configuration.
2008-11-13 Joel Brobecker <brobecker@adacore.com>
* configure.in: Deactivate large-file support on native 32bit
sparc-solaris unless the user explicitly requested it.
* configure: Regenerate.
Tested by rebuild on sparc-solaris. I tried with and without
--enable-large file. In the latter case, the build failed, as expected,
showing that large file support has been included to the detriment of
some elf routines.
--
Joel
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /cvs/src/src/bfd/configure.in,v
retrieving revision 1.247
diff -u -p -r1.247 configure.in
--- configure.in 6 Nov 2008 14:10:46 -0000 1.247
+++ configure.in 13 Nov 2008 21:54:09 -0000
@@ -22,6 +22,21 @@ AC_DISABLE_SHARED
AC_PROG_CC
AC_GNU_SOURCE
AC_USE_SYSTEM_EXTENSIONS
+
+case "${target}" in
+ sparc-*-solaris*)
+ # On native 32bit sparc-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
+ enable_largefile="no"
+ fi
+ ;;
+esac
+
AC_SYS_LARGEFILE
LT_INIT
More information about the Binutils
mailing list