Skip to content
Snippets Groups Projects
Commit 90d2e8d2688a authored by Lasse Collin's avatar Lasse Collin
Browse files

Hopefully improved portability of the assembler code in

Autotools based builds on Windows.
parent c33a564217b6
No related branches found
No related tags found
No related merge requests found
......@@ -109,4 +109,9 @@
* 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
* 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.
*/
......@@ -112,5 +117,6 @@
*/
#if !defined(PIC) && !defined(__PIC__)
#if (!defined(PIC) && !defined(__PIC__)) \
|| (defined(_WIN32) || defined(__CYGWIN__))
/* Not PIC */
movl $LZMA_CRC32_TABLE, %ebx
#elif defined(__MACH__)
......
......@@ -100,4 +100,9 @@
* 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
* 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.
*/
......@@ -103,5 +108,6 @@
*/
#if !defined(PIC) && !defined(__PIC__)
#if (!defined(PIC) && !defined(__PIC__)) \
|| (defined(_WIN32) || defined(__CYGWIN__))
/* Not PIC */
movl $LZMA_CRC64_TABLE, %ebx
#elif defined(__MACH__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment