diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-03-07 11:47:20 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-03-07 14:39:31 +0000 |
commit | eb76d255b6ecd5b274463ca6431df492a42c10ad (patch) | |
tree | 072fb71a6eda8c43d65f59736784d00f14d7173e | |
parent | d6c913e50718206f10ed64bf348e14a0af9950e8 (diff) | |
download | gcc-tarball-eb76d255b6ecd5b274463ca6431df492a42c10ad.tar.gz |
Build gcc correctly under ARM
Reviewed-by: Richard Maw <richard.maw@codethink.co.uk>
-rw-r--r-- | gcc.morph | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,7 +3,9 @@ "kind": "chunk", "configure-commands": [ "mkdir o", - "cd o && ../configure --prefix=\"$PREFIX\" --libdir=\"$PREFIX/lib\" --disable-libgomp --disable-multilib --disable-nls --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-threads=posix --without-cloog --without-ppl --with-mpfr-include=\"$(pwd)/../mpfr/src\" --with-mpfr-lib=\"$(pwd)/mpfr/src/.libs\"", + "cd o && touch configure-flags", + "cd o && if echo \"$TOOLCHAIN_TARGET\" | grep arm; then echo \"--with-arch=armv7-a\" >> configure-flags; fi", + "cd o && ../configure $(cat configure-flags) --prefix=\"$PREFIX\" --libdir=\"$PREFIX/lib\" --disable-libgomp --disable-multilib --disable-nls --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-threads=posix --without-cloog --without-ppl --with-mpfr-include=\"$(pwd)/../mpfr/src\" --with-mpfr-lib=\"$(pwd)/mpfr/src/.libs\"", "if [ ! -d /usr/include ]; then mkdir /usr; ln -s /tools/include /usr/include; fi" ], "build-commands": [ |