Building gmp library for the iPhone-Update
Pierre-Henri Jondot
mpkju at free.fr
Thu Jul 16 15:25:54 CEST 2009
Le 16 juil. 09 à 15:03, Torbjorn Granlund a écrit :
> Please compile the attached program, using
> "-IGMP_BUILD_DIR -IGMP_SRC_DIR -O2 -S -fPIC"
> as well as
> "-IGMP_BUILD_DIR -IGMP_SRC_DIR -O2 -S -fno-pic"
> and follow up to the list with the two foo.s files (please indicate
> which is which).
>
> <foo.c>
> --
> Torbjörn
With /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -
arch armv6 -IGMP_BUILD_DIR -IGMP_SRC_DIR -O2 -S -fPIC -isysroot /
Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk
foo.c
I got :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo-fPIC.s
Type: application/octet-stream
Size: 4716 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-discuss/attachments/20090716/652b01e9/attachment.obj>
-------------- next part --------------
and with /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -
arch armv6 -IGMP_BUILD_DIR -IGMP_SRC_DIR -O2 -S -fno-pic -isysroot /
Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk
foo.c
I got :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo-fno-pic.s
Type: application/octet-stream
Size: 4491 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-discuss/attachments/20090716/652b01e9/attachment-0001.obj>
-------------- next part --------------
Regards,
Pierre-Henri (who has no clue about what he just did...)
More information about the gmp-discuss
mailing list