[PATCH] Fix arm cross-compilation with -mthumb

Andoni Morales ylatuya at gmail.com
Fri Sep 7 15:27:07 CEST 2012


2012/9/6 Mike Mohr <akihana at gmail.com>:
> Excellent, thanks for this.  I'll add it to the project I've started to
> support GMP on Android:
>
> https://github.com/Rupan/gmp
>
> If you're actively working on this then I'd like to collaborate.

I am not working on libgmp directly, but it's a dependency for
GStreamer's libsoup plugin. We are currently porting GStreamer to
Android, which includes a bunch a of other projects.

Andoni
>
> Mike
>
> On Wed, Sep 5, 2012 at 4:21 AM, Andoni Morales <ylatuya at gmail.com> wrote:
>
>> I am trying to cross-compile libgmp using the Android's toolchain
>> provided with the r8n NDK.
>> Compilation fails for arm with the compiler option -mthumb. The check
>> "W_TYPE_SIZE == 32"  should be  "W_TYPE_SIZE == 32 &&
>> !defined(__thumb__)".
>> Attached patch and config.log
>>
>> GMP Version: 5.0.5 release tarball
>>
>>
>> --
>> Andoni Morales Alastruey
>>
>> LongoMatch:The Digital Coach
>> http://www.longomatch.ylatuya.es
>>
>> _______________________________________________
>> gmp-bugs mailing list
>> gmp-bugs at gmplib.org
>> https://gmplib.org/mailman/listinfo/gmp-bugs
>>
>>
> _______________________________________________
> gmp-bugs mailing list
> gmp-bugs at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-bugs



-- 
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es


More information about the gmp-bugs mailing list