title: Getting GMP to work with GCC 4.5.2
body: <p>I'm trying to make a cross compiler with the files from <a href="http://crossgcc.rts-software.org/doku.php?id=i386linuxgccformac" rel="nofollow">http://crossgcc.rts-software.org/doku.php?id=i386linuxgccformac</a></p>
  
  <p>I'm on an Intel Mac (10.6.6, x86_64) I compiled: gmp, mpfr, mpc for the cross compiler as 32bit (as I'm on a 64bit Mac) but I'm getting </p>
  
  <pre><code>ld: warning: option -s is obsolete and being ignored
  ld: warning: ignoring file /gmp1/lib/libmpc.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
  ld: warning: ignoring file /gmp1/lib/libmpfr.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
  ld: warning: ignoring file /gmp1/lib/libgmp.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
  </code></pre>
  
  <p>When compiling GCC with:</p>
  
  <pre><code>--prefix=/usr/local/i386-linux-4.5.2 --target=i386-linux --enable-languages=c --without-headers --disable-shared --disable-threads --disable-nls --with-gmp=/gmp1 --with-gmp-lib=/gmp1 --with-gmp-include=/gmp1 --with-mpfr=/gmp1 --with-mpfr-include=/gmp1 --with-mpfr-lib=/gmp1 --with-mpc=/gmp1 --with-mpc-lib=/gmp1 --with-mpc-include=/gmp1
  </code></pre>
  
  <p>Also, if I compile GMP with: </p>
  
  <pre><code>./configure --prefix=/gmp1 --host=i386-linux
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>configure: WARNING: +----------------------------------------------------------
  configure: WARNING: | Cannot determine global symbol prefix.
  configure: WARNING: | link -dump -symbols output doesn't contain a global data symbol.
  configure: WARNING: | Will proceed with no underscore.
  configure: WARNING: | If this is wrong then you'll get link errors referring
  configure: WARNING: | to ___gmpn_add_n (note three underscores).
  configure: WARNING: | In this case do a fresh build with an override,
  configure: WARNING: |     ./configure gmp_cv_asm_underscore=yes
  configure: WARNING: +----------------------------------------------------------
  checking how to switch to read-only data section... .data
  checking for assembler .type directive... 
  checking for assembler .size directive... 
  checking for assembler local label prefix... configure: WARNING: "link -dump -symbols" failure
  configure: WARNING: cannot determine local label, using default L
  L
  checking for assembler byte directive... .byte
  checking how to define a 32-bit word... link: illegal option -- d
  </code></pre>