天天看點

自己編譯arm linux gcc,編譯arm-linux-gcc出錯

該樓層疑似違規已被系統折疊 隐藏此樓檢視此樓

在ubuntu12.04下編譯arm的交叉編譯工具鍊

執行../gcc-4.6.0/configure --target=$TARGET --prefix=$PREFIX --without-headers --enable-languages=c --disable-threads --with-newlib --disable-shared --disable-libmudflap --disable-libssp

make

make install

顯示

configure: loading cache ./config.cache

configure: error: `CXXFLAGS' has changed since the previous run:

configure: former value: `'

configure: current value: `-g -O2'

configure: error: in `/home/john/code/embedded/2440/build-tools/build-boot-gcc/gcc':

configure: error: changes in the environment can compromise the build

configure: error: run `make distclean' and/or `rm ./config.cache' and start over

make[1]: *** [configure-gcc] Error 1

make[1]: Leaving directory `/home/john/code/embedded/2440/build-tools/build-boot-gcc'

make: *** [all] Error 2

但是我并不知道這個CXXFLAGS是個什麼東西……

搞了半天也搞不定,也不知道是不是其他地方的問題

請各位幫幫我