re PR libgcj/44341 (libjava cross build fails when configured with --with-gmp=)

ChangeLog:
PR libgcj/44341
* configure.ac: Discard --with-* flags for host when configuring
target libraries for cross build.
* configure: Rebuilt.
gcc/ChangeLog:
PR libgcj/44341
* doc/install.texi: Document host options discarded when cross
configuring target libraries.

From-SVN: r169430
This commit is contained in:
Alexandre Oliva 2011-01-31 05:20:17 +00:00 committed by Alexandre Oliva
parent ef591d3f05
commit 29a63921d9
5 changed files with 105 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2011-01-31 Alexandre Oliva <aoliva@redhat.com>
PR libgcj/44341
* configure.ac: Discard --with-* flags for host when configuring
target libraries for cross build.
* configure: Rebuilt.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com> 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
* MAINTAINERS (linear loop transforms): Removed. * MAINTAINERS (linear loop transforms): Removed.

44
configure vendored
View File

@ -7330,6 +7330,7 @@ serialization_dependencies=serdep.tmp
# Also strip program-prefix, program-suffix, and program-transform-name, # Also strip program-prefix, program-suffix, and program-transform-name,
# so that we can pass down a consistent program-transform-name. # so that we can pass down a consistent program-transform-name.
baseargs= baseargs=
tbaseargs=
keep_next=no keep_next=no
skip_next=no skip_next=no
eval "set -- $ac_configure_args" eval "set -- $ac_configure_args"
@ -7345,6 +7346,7 @@ do
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac esac
baseargs="$baseargs '$ac_arg'" baseargs="$baseargs '$ac_arg'"
tbaseargs="$tbaseargs '$ac_arg'"
keep_next=no keep_next=no
continue continue
fi fi
@ -7366,11 +7368,45 @@ do
;; ;;
esac esac
skip_targ=no
case $ac_arg in
--with-* | --without-*)
libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
case $libopt in
*[-_]include)
lib=`echo "$libopt" | sed 's,[-_]include$,,'`
;;
*[-_]lib)
lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
;;
*)
lib=$libopt
;;
esac
case $lib in
mpc | mpfr | gmp | ppl | cloog)
# If we're processing --with-$lib, --with-$lib-include or
# --with-$lib-lib, for one of the libs above, and target is
# different from host, don't pass the current argument to any
# target library's configure.
if test x$is_cross_compiler = xyes; then
skip_targ=yes
fi
;;
esac
;;
esac
case "$ac_arg" in case "$ac_arg" in
--cache-file=/dev/null | \ --cache-file=/dev/null | \
-cache-file=/dev/null ) -cache-file=/dev/null )
# Handled here to avoid the test to skip args below. # Handled here to avoid the test to skip args below.
baseargs="$baseargs '$ac_arg'" baseargs="$baseargs '$ac_arg'"
tbaseargs="$tbaseargs '$ac_arg'"
# Assert: $separate_arg should always be no. # Assert: $separate_arg should always be no.
keep_next=$separate_arg keep_next=$separate_arg
;; ;;
@ -7401,6 +7437,9 @@ do
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac esac
baseargs="$baseargs '$ac_arg'" baseargs="$baseargs '$ac_arg'"
if test X"$skip_targ" = Xno; then
tbaseargs="$tbaseargs '$ac_arg'"
fi
keep_next=$separate_arg keep_next=$separate_arg
;; ;;
*) *)
@ -7427,10 +7466,13 @@ EOF_SED
gcc_transform_name=`cat conftestsed.out` gcc_transform_name=`cat conftestsed.out`
rm -f conftestsed.out rm -f conftestsed.out
baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
if test "$silent" = yes; then if test "$silent" = yes; then
baseargs="$baseargs --silent" baseargs="$baseargs --silent"
tbaseargs="$tbaseargs --silent"
fi fi
baseargs="$baseargs --disable-option-checking" baseargs="$baseargs --disable-option-checking"
tbaseargs="$tbaseargs --disable-option-checking"
# Record and document user additions to sub configure arguments. # Record and document user additions to sub configure arguments.
@ -7456,7 +7498,7 @@ esac
# This seems to be due to autoconf 2.5x stupidity. # This seems to be due to autoconf 2.5x stupidity.
host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
target_configargs="$target_configargs ${baseargs}" target_configargs="$target_configargs ${tbaseargs}"
# Passing a --with-cross-host argument lets the target libraries know # Passing a --with-cross-host argument lets the target libraries know
# whether they are being built with a cross-compiler or being built # whether they are being built with a cross-compiler or being built

View File

@ -2845,6 +2845,7 @@ AC_SUBST_FILE(serialization_dependencies)
# Also strip program-prefix, program-suffix, and program-transform-name, # Also strip program-prefix, program-suffix, and program-transform-name,
# so that we can pass down a consistent program-transform-name. # so that we can pass down a consistent program-transform-name.
baseargs= baseargs=
tbaseargs=
keep_next=no keep_next=no
skip_next=no skip_next=no
eval "set -- $ac_configure_args" eval "set -- $ac_configure_args"
@ -2860,6 +2861,7 @@ do
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac esac
baseargs="$baseargs '$ac_arg'" baseargs="$baseargs '$ac_arg'"
tbaseargs="$tbaseargs '$ac_arg'"
keep_next=no keep_next=no
continue continue
fi fi
@ -2881,11 +2883,45 @@ do
;; ;;
esac esac
skip_targ=no
case $ac_arg in
changequote(,)
--with-* | --without-*)
libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
case $libopt in
*[-_]include)
lib=`echo "$libopt" | sed 's,[-_]include$,,'`
;;
*[-_]lib)
lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
;;
*)
lib=$libopt
;;
esac
changequote([,])
case $lib in
mpc | mpfr | gmp | ppl | cloog)
# If we're processing --with-$lib, --with-$lib-include or
# --with-$lib-lib, for one of the libs above, and target is
# different from host, don't pass the current argument to any
# target library's configure.
if test x$is_cross_compiler = xyes; then
skip_targ=yes
fi
;;
esac
;;
esac
case "$ac_arg" in case "$ac_arg" in
--cache-file=/dev/null | \ --cache-file=/dev/null | \
-cache-file=/dev/null ) -cache-file=/dev/null )
# Handled here to avoid the test to skip args below. # Handled here to avoid the test to skip args below.
baseargs="$baseargs '$ac_arg'" baseargs="$baseargs '$ac_arg'"
tbaseargs="$tbaseargs '$ac_arg'"
# Assert: $separate_arg should always be no. # Assert: $separate_arg should always be no.
keep_next=$separate_arg keep_next=$separate_arg
;; ;;
@ -2916,6 +2952,9 @@ do
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac esac
baseargs="$baseargs '$ac_arg'" baseargs="$baseargs '$ac_arg'"
if test X"$skip_targ" = Xno; then
tbaseargs="$tbaseargs '$ac_arg'"
fi
keep_next=$separate_arg keep_next=$separate_arg
;; ;;
*) *)
@ -2942,10 +2981,13 @@ EOF_SED
gcc_transform_name=`cat conftestsed.out` gcc_transform_name=`cat conftestsed.out`
rm -f conftestsed.out rm -f conftestsed.out
baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
if test "$silent" = yes; then if test "$silent" = yes; then
baseargs="$baseargs --silent" baseargs="$baseargs --silent"
tbaseargs="$tbaseargs --silent"
fi fi
baseargs="$baseargs --disable-option-checking" baseargs="$baseargs --disable-option-checking"
tbaseargs="$tbaseargs --disable-option-checking"
# Record and document user additions to sub configure arguments. # Record and document user additions to sub configure arguments.
AC_ARG_VAR([build_configargs], AC_ARG_VAR([build_configargs],
@ -2974,7 +3016,7 @@ esac
# This seems to be due to autoconf 2.5x stupidity. # This seems to be due to autoconf 2.5x stupidity.
host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
target_configargs="$target_configargs ${baseargs}" target_configargs="$target_configargs ${tbaseargs}"
# Passing a --with-cross-host argument lets the target libraries know # Passing a --with-cross-host argument lets the target libraries know
# whether they are being built with a cross-compiler or being built # whether they are being built with a cross-compiler or being built

View File

@ -1,3 +1,9 @@
2011-01-31 Alexandre Oliva <aoliva@redhat.com>
PR libgcj/44341
* doc/install.texi: Document host options discarded when cross
configuring target libraries.
2011-01-31 Alexandre Oliva <aoliva@redhat.com> 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
Reverted: Reverted:

View File

@ -1584,6 +1584,9 @@ shared libraries can be found by the dynamic linker when building and
using GCC, for example by setting the runtime shared library path using GCC, for example by setting the runtime shared library path
variable (@env{LD_LIBRARY_PATH} on GNU/Linux and Solaris systems). variable (@env{LD_LIBRARY_PATH} on GNU/Linux and Solaris systems).
These flags are applicable to the host platform only. When building
a cross compiler, they will not be used to configure target libraries.
@item --with-ppl=@var{pathname} @item --with-ppl=@var{pathname}
@itemx --with-ppl-include=@var{pathname} @itemx --with-ppl-include=@var{pathname}
@itemx --with-ppl-lib=@var{pathname} @itemx --with-ppl-lib=@var{pathname}
@ -1604,6 +1607,9 @@ you can explicitly specify the directory where they are installed
shorthand assumptions are not correct, you can use the explicit shorthand assumptions are not correct, you can use the explicit
include and lib options directly. include and lib options directly.
These flags are applicable to the host platform only. When building
a cross compiler, they will not be used to configure target libraries.
@item --with-host-libstdcxx=@var{linker-args} @item --with-host-libstdcxx=@var{linker-args}
If you are linking with a static copy of PPL, you can use this option If you are linking with a static copy of PPL, you can use this option
to specify how the linker should find the standard C++ library used to specify how the linker should find the standard C++ library used