Daniel Jacobowitz - Toplevel PR 30753 (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC 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]

Toplevel PR 30753 - Fix non-native builds


This should fix Dave Anglin's build failure, with just "--host=hppa-linux". It also fixes my x86_64->mingw32->arm builds. I'm confused, since I tested exactly that configuration, but I must have messed up and tested something different instead.

Also, the ACX_TOOL_DIRS change prevents --with-headers from copying files to NONE/${target}/sys-include if you don't specify --prefix. Of course, if you don't specify a prefix the odds are good that it'll pick /usr/local and you won't be able to write to there, so things go wrong anyway. But that was the status quo for autoconf 2.13 too.

OK?

-- Daniel Jacobowitz CodeSourcery

2007-02-12 Daniel Jacobowitz dan@codesourcery.com Paolo Bonzini bonzini@gnu.org

PR bootstrap/30753
* configure.ac: Remove obsolete build / host tests.  Use AC_PROG_CC
unconditionally.  Use AC_PROG_CXX.  Use ACX_TOOL_DIRS to find $prefix.
* configure: Regenerated.

Index: configure.ac

--- configure.ac (revision 121846) +++ configure.ac (working copy) @@ -1030,51 +1030,32 @@ if test -z "${CC}" && test "${build}" = fi if test "${build}" != "${host}" ; then - # If we are doing a Canadian Cross, in which the host and build systems - # are not the same, we set reasonable default values for the tools.

+# We must set the default linker to the linker used by gcc for the correct +# operation of libtool. If LD is not defined and we are using gcc, try to +# set the LD default to the ld used by gcc. +if test -z "$LD"; then + if test "$GCC" = yes; then + case $build in + --mingw*) + gcc_prog_ld=$CC -print-prog-name=ld 2>&1 | tr -d '\015' ;; + ) + gcc_prog_ld=$CC -print-prog-name=ld 2>&1 ;; + esac + case $gcc_prog_ld in + # Accept absolute paths. + [[\/] | [A-Za-z]:[\/]*)] + LD="$gcc_prog_ld" ;; + esac fi

+AC_PROG_CC +AC_PROG_CXX ACX_PROG_GNAT ACX_PROG_CMP_IGNORE_INITIAL

@@ -1578,6 +1559,9 @@ case "$host" in enable_gdbtk=no ;; esac

+# To find our prefix, in gcc_cv_tool_prefix. +ACX_TOOL_DIRS + copy_dirs=

AC_ARG_WITH([build-sysroot], @@ -1597,10 +1581,7 @@ if test x"${with_headers}" != x && test exit 1 fi if test x"${with_headers}" != xyes ; then


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