aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-11-13 23:09:47 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-11-13 23:09:47 +0000
commit08c13eba506ec56aa5d38c8121cf3fd8e4d1ea63 (patch)
tree71bbcc7ba6e7cb87066bf74f1f66505bb98d706b /bfd
parent06be140c21c96663f74061fb7f1375020196655e (diff)
downloadgdb-08c13eba506ec56aa5d38c8121cf3fd8e4d1ea63.zip
gdb-08c13eba506ec56aa5d38c8121cf3fd8e4d1ea63.tar.gz
gdb-08c13eba506ec56aa5d38c8121cf3fd8e4d1ea63.tar.bz2
* configure.in: Deactivate large-file support on native 32bit
sparc-solaris unless the user explicitly requested it. * configure: Regenerate.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rwxr-xr-xbfd/configure43
-rw-r--r--bfd/configure.in15
3 files changed, 50 insertions, 14 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4610334..d20e6e0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2008-11-13 Hans-Peter Nilsson <hp@axis.com>
PR ld/7028
diff --git a/bfd/configure b/bfd/configure
index 5cd7e77..9827e6c 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -4934,6 +4934,21 @@ _ACEOF
_ACEOF
+
+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
+
# Check whether --enable-largefile or --disable-largefile was given.
if test "${enable_largefile+set}" = set; then
enableval="$enable_largefile"
@@ -5705,13 +5720,13 @@ if test "${lt_cv_nm_interface+set}" = set; then
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
- (eval echo "\"\$as_me:5708: $ac_compile\"" >&5)
+ (eval echo "\"\$as_me:5723: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
- (eval echo "\"\$as_me:5711: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval echo "\"\$as_me:5726: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
- (eval echo "\"\$as_me:5714: output\"" >&5)
+ (eval echo "\"\$as_me:5729: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
@@ -6868,7 +6883,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 6871 "configure"' > conftest.$ac_ext
+ echo '#line 6886 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -8144,11 +8159,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8147: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:8151: \$? = $ac_status" >&5
+ echo "$as_me:8166: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -8483,11 +8498,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8501: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:8490: \$? = $ac_status" >&5
+ echo "$as_me:8505: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -8588,11 +8603,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:8595: \$? = $ac_status" >&5
+ echo "$as_me:8610: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -8643,11 +8658,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8661: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:8650: \$? = $ac_status" >&5
+ echo "$as_me:8665: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -11440,7 +11455,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11443 "configure"
+#line 11458 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11536,7 +11551,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11539 "configure"
+#line 11554 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
diff --git a/bfd/configure.in b/bfd/configure.in
index bcc4615..22ceb61 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -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