[PATCH] Fix arm cross-compilation with -mthumb

Andoni Morales ylatuya at gmail.com
Wed Sep 5 13:21:59 CEST 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-compilation-with-mthumb.patch
Type: application/octet-stream
Size: 752 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20120905/b6797f6e/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 659073 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20120905/b6797f6e/attachment-0003.obj>


More information about the gmp-bugs mailing list