Building gmp library for the iPhone-Update

Pierre-Henri Jondot mpkju at free.fr
Thu Jul 16 17:13:21 CEST 2009


Le 16 juil. 09 à 16:50, Torbjorn Granlund a écrit :

> Thanks.
>
> Please try the attached mpn/arm/invert_limb.asm replacement.  You need
> to make sure APPLE is defined, perhaps most simply by saying
> "define(`APPLE',1)" in the beginning of the file.  (Of course, such
> things will be done automatically when this is fully integrated.)
>
> I am curious if this makes things build without -DNO_ASM and with  
> none-
> replaced by arm- in --host.
>
> <invert_limb.asm>
> -- 
> Torbjörn

Yes,

With this invert_limb.asm replacement, (I added define('APPLE',1) to  
make sure), the gmp library built successfully with arm-apple-darwin  
as host.

the configure I used last is :
./configure CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/ 
bin/gcc-4.2" CPP="/Developer/Platforms/iPhoneOS.platform/Developer/usr/ 
bin/gcc-4.2 -E" LD="/Developer/Platforms/iPhoneOS.platform/Developer/ 
usr/bin/ld" CPPFLAGS="-arch armv6 -isysroot /Developer/Platforms/ 
iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk -miphoneos-version- 
min=3.0" --disable-shared --enable-static --prefix=/Developer/ 
Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/local -- 
host=arm-apple-darwin9

Regards,

Pierre-Henri


More information about the gmp-discuss mailing list