mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Hopefully improved portability of the assembler code in
Autotools based builds on Windows.
This commit is contained in:
parent
c393055947
commit
b2b1f86753
2 changed files with 14 additions and 2 deletions
|
@ -109,8 +109,14 @@ LZMA_CRC32:
|
||||||
* by GCC but only on some systems. Testing for both makes it simpler
|
* by GCC but only on some systems. Testing for both makes it simpler
|
||||||
* to test this code without libtool, and keeps the code working also
|
* to test this code without libtool, and keeps the code working also
|
||||||
* when built with libtool but using something else than GCC.
|
* when built with libtool but using something else than GCC.
|
||||||
|
*
|
||||||
|
* I understood that libtool may define PIC on Windows even though
|
||||||
|
* the code in Windows DLLs is not PIC in sense that it is in ELF
|
||||||
|
* binaries, so we need a separate check to always use the non-PIC
|
||||||
|
* code on Windows.
|
||||||
*/
|
*/
|
||||||
#if !defined(PIC) && !defined(__PIC__)
|
#if (!defined(PIC) && !defined(__PIC__)) \
|
||||||
|
|| (defined(_WIN32) || defined(__CYGWIN__))
|
||||||
/* Not PIC */
|
/* Not PIC */
|
||||||
movl $LZMA_CRC32_TABLE, %ebx
|
movl $LZMA_CRC32_TABLE, %ebx
|
||||||
#elif defined(__MACH__)
|
#elif defined(__MACH__)
|
||||||
|
|
|
@ -100,8 +100,14 @@ LZMA_CRC64:
|
||||||
* by GCC but only on some systems. Testing for both makes it simpler
|
* by GCC but only on some systems. Testing for both makes it simpler
|
||||||
* to test this code without libtool, and keeps the code working also
|
* to test this code without libtool, and keeps the code working also
|
||||||
* when built with libtool but using something else than GCC.
|
* when built with libtool but using something else than GCC.
|
||||||
|
*
|
||||||
|
* I understood that libtool may define PIC on Windows even though
|
||||||
|
* the code in Windows DLLs is not PIC in sense that it is in ELF
|
||||||
|
* binaries, so we need a separate check to always use the non-PIC
|
||||||
|
* code on Windows.
|
||||||
*/
|
*/
|
||||||
#if !defined(PIC) && !defined(__PIC__)
|
#if (!defined(PIC) && !defined(__PIC__)) \
|
||||||
|
|| (defined(_WIN32) || defined(__CYGWIN__))
|
||||||
/* Not PIC */
|
/* Not PIC */
|
||||||
movl $LZMA_CRC64_TABLE, %ebx
|
movl $LZMA_CRC64_TABLE, %ebx
|
||||||
#elif defined(__MACH__)
|
#elif defined(__MACH__)
|
||||||
|
|
Loading…
Reference in a new issue