Ticket #7824: gcc-cross-compiler.diff

File gcc-cross-compiler.diff, 551 bytes (added by bonefish, 10 years ago)

Patch for buildtools introducing --enable-cross-compiler gcc 4 configure option

  • gcc/configure.ac

     
    230230  is_cross_compiler=yes
    231231fi 
    232232
     233# handle --enable-cross-compiler
     234AC_ARG_ENABLE(cross_compiler,
     235[  --enable-cross-compiler force building a cross-compiler],
     236FORCE_CROSS_COMPILER=$enableval,
     237FORCE_CROSS_COMPILER=no)
     238if test "${FORCE_CROSS_COMPILER}" = "yes"; then
     239  is_cross_compiler=yes
     240fi
     241
    233242# Find the build and target subdir names.
    234243GCC_TOPLEV_SUBDIRS
    235244