Browse Source

gcc: fix cross-compiling stage by explicitely specify the target architecture (needed by gcc 4.3 and upwards)

user/karasz/test/ecn
Christian Wiese 15 years ago committed by Alejandro Mery
parent
commit
7a1a37c2f4
  1. 6
      base/gcc/gcc.conf

6
base/gcc/gcc.conf

@ -124,6 +124,12 @@ if atstage toolchain; then
export LDFLAGS="-Wl,-rpath,${root}${libdir}"
fi
if atstage cross; then
# for gcc versions 4.3 and upwards we have to explicitely specifiy the
# target architecture at cross-compiling stage
var_append confopt ' ' '--target=$arch_target'
fi
if ! atstage native; then
var_append confopt " " "--disable-libmudflap"
else

Loading…
Cancel
Save