summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2010-04-15 10:49:28 +0200
committerThomas Schwinge <thomas@schwinge.name>2010-04-15 10:49:28 +0200
commitd74b13008e0821774adf5f156840e58837df263f (patch)
treeb450393d2ccc87dc11b5f09986e30f91899694c9
parent3246357f7ae175bad62f9f0c9b77349707917581 (diff)
Build for i686.
* cross-gnu: Configure GCC --with-arch=i686. Pass --disable-multi-arch to glibc's configure. * cross-gnu-env (TARGET): Set to i686-pc-gnu.
-rwxr-xr-xcross-gnu12
-rwxr-xr-xcross-gnu-env2
2 files changed, 9 insertions, 5 deletions
diff --git a/cross-gnu b/cross-gnu
index 46b25414a..4ff356740 100755
--- a/cross-gnu
+++ b/cross-gnu
@@ -93,7 +93,7 @@ if "$TARGET"-gcc --version > /dev/null 2>&1; then :; else
--without-headers \
--with-newlib \
--enable-languages=c \
- --with-arch=i586
+ --with-arch=i686
fi &&
# TODO: GCC 3.3 and GCC 3.4 need this for building libgcc.a. Not needed for
@@ -201,13 +201,15 @@ if test -h "$SYS_ROOT"/lib/ld.so; then :; else
cd "$GLIBC_SRC".obj &&
if ./config.status --version > /dev/null 2>&1; then :; else
# `--build' has to be set to make sure that glibc is cross compiled.
+ # TODO: --disable-multi-arch
"$GLIBC_SRC"/configure \
--without-cvs \
--build="$("$GLIBC_SRC"/scripts/config.guess)" \
--host="$TARGET" \
--prefix= \
--with-headers="$SYS_ROOT"/include \
- --disable-profile
+ --disable-profile \
+ --disable-multi-arch
fi &&
if "$MAKE" \
install_root="$SYS_ROOT" \
@@ -275,7 +277,7 @@ if ./config.status --version > /dev/null 2>&1; then :; else
--disable-nls \
--enable-threads=posix \
--enable-languages=c,c++ \
- --with-arch=i586
+ --with-arch=i686
fi &&
"$MAKE" \
all &&
@@ -293,13 +295,15 @@ mkdir -p "$GLIBC_SRC".obj &&
cd "$GLIBC_SRC".obj &&
if ./config.status --version > /dev/null 2>&1; then :; else
# `--build' has to be set to make sure that glibc is cross compiled.
+ # TODO: --disable-multi-arch
"$GLIBC_SRC"/configure \
--without-cvs \
--build="$("$GLIBC_SRC"/scripts/config.guess)" \
--host="$TARGET" \
--prefix= \
--with-headers="$SYS_ROOT"/include \
- --disable-profile
+ --disable-profile \
+ --disable-multi-arch
fi &&
"$MAKE" \
install_root="$SYS_ROOT" \
diff --git a/cross-gnu-env b/cross-gnu-env
index a22c53e4d..133bc298e 100755
--- a/cross-gnu-env
+++ b/cross-gnu-env
@@ -88,7 +88,7 @@ esac &&
prj_x2 prj_set_default SYS_ROOT "$ROOT"/sys_root &&
-prj_x2 prj_set_default TARGET i586-pc-gnu &&
+prj_x2 prj_set_default TARGET i686-pc-gnu &&
prj_x2 prj_set_default BINUTILS_SRC "$ROOT"/src/binutils &&
prj_x2 prj_set_default GCC_SRC "$ROOT"/src/gcc &&