Skip to content
Browse files

Fixes for 64-bit linux host.

  • Loading branch information...
1 parent a0bc339 commit 4788a397f3e339892986aa1341fe51473abf5db5 Fredrik Eldh committed Feb 27, 2011
Showing with 11 additions and 7 deletions.
  1. +1 −0 .gitignore
  2. +5 −3 configure-linux.sh
  3. +1 −1 gcc-3.4.6/gcc/config/mapip/mapip.c
  4. +4 −3 install.sh
View
1 .gitignore
@@ -0,0 +1 @@
+/build
View
8 configure-linux.sh
@@ -31,9 +31,9 @@ builddir=./build/gcc
target=mapip
progpref=mapip-
-export CFLAGS='-O2 -pipe'
-export CXXFLAGS='-O2 -pipe'
-export LDFLAGS='-s'
+export CFLAGS='-O2 -pipe -m32'
+export CXXFLAGS='-O2 -pipe -m32'
+export LDFLAGS='-s -m32'
export DEBUG_FLAGS=''
#---------------------------------------------------------------------------------
@@ -51,4 +51,6 @@ $SRCDIR/configure \
--target=$target \
--without-headers \
--program-prefix=$progpref -v \
+ --build=i686-linux-gnu \
+ --host=i686-linux-gnu \
2>&1 | tee gcc_configure.log
View
2 gcc-3.4.6/gcc/config/mapip/mapip.c
@@ -343,7 +343,7 @@ void mapip_output_mi_thunk( FILE *file,
{
fprintf (file, ";** MI THUNK BEGIN **\n");
- fprintf (file, "add i0,#0x%x\n", delta);
+ fprintf (file, "add i0,#0x%lx\n", delta);
fprintf (file, "call &");
assemble_name (file, XSTR(XEXP(DECL_RTL(funcdecl),0),0));
View
7 install.sh
@@ -1,16 +1,17 @@
#!/bin/bash
-export MOSYNCDIR=~/mosync
BIN=$MOSYNCDIR/bin
+LIB=$MOSYNCDIR/libexec/gcc
echo $BIN
mkdir -p $BIN
+mkdir -p $LIB
cp build/gcc/gcc/xgcc $BIN
cp build/gcc/gcc/cpp $BIN
-cp build/gcc/gcc/cc1 $BIN
-cp build/gcc/gcc/cc1plus $BIN
+cp build/gcc/gcc/cc1 $LIB
+cp build/gcc/gcc/cc1plus $LIB
echo installation complete.

0 comments on commit 4788a39

Please sign in to comment.
Something went wrong with that request. Please try again.