diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-06-26 15:37:53 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-06-26 15:37:53 +0300 |
commit | 390a6408563067613b29de895cb40e4d0386d62c (patch) | |
tree | 74efbd8a29a433fb3c15697d65b8dc3f00011b87 /src/liblzma/check | |
parent | Fix @variables@ to $(variables) in Makefile.am files. (diff) | |
download | xz-390a6408563067613b29de895cb40e4d0386d62c.tar.xz |
Basic support for building with Cygwin and MinGW using
the Autotools based build system. It's not good yet, more
fixes will follow.
Diffstat (limited to 'src/liblzma/check')
-rw-r--r-- | src/liblzma/check/crc32_x86.S | 7 | ||||
-rw-r--r-- | src/liblzma/check/crc64_x86.S | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/liblzma/check/crc32_x86.S b/src/liblzma/check/crc32_x86.S index b3c7538f..2342168b 100644 --- a/src/liblzma/check/crc32_x86.S +++ b/src/liblzma/check/crc32_x86.S @@ -76,7 +76,8 @@ init_table(void) .text .globl LZMA_CRC32 -#if !defined(__MACH__) && !defined(_WIN32) && !defined(__MSDOS__) +#if !defined(__MACH__) && !defined(_WIN32) && !defined(__CYGWIN__) \ + && !defined(__MSDOS__) .type LZMA_CRC32, @function #endif @@ -275,8 +276,8 @@ LZMA_CRC32: .indirect_symbol LZMA_CRC32_TABLE .long 0 -#elif defined(_WIN32) -# ifndef LZMA_API_STATIC +#elif defined(_WIN32) || defined(__CYGWIN__) +# ifdef DLL_EXPORT /* This is equivalent of __declspec(dllexport). */ .section .drectve .ascii " -export:lzma_crc32" diff --git a/src/liblzma/check/crc64_x86.S b/src/liblzma/check/crc64_x86.S index 5e170bc8..8b0a42db 100644 --- a/src/liblzma/check/crc64_x86.S +++ b/src/liblzma/check/crc64_x86.S @@ -66,7 +66,8 @@ init_table(void) .text .globl LZMA_CRC64 -#if !defined(__MACH__) && !defined(_WIN32) && !defined(__MSDOS__) +#if !defined(__MACH__) && !defined(_WIN32) && !defined(__CYGWIN__) \ + && !defined(__MSDOS__) .type LZMA_CRC64, @function #endif @@ -258,8 +259,8 @@ LZMA_CRC64: .indirect_symbol LZMA_CRC64_TABLE .long 0 -#elif defined(_WIN32) -# ifndef LZMA_API_STATIC +#elif defined(_WIN32) || defined(__CYGWIN__) +# ifdef DLL_EXPORT /* This is equivalent of __declspec(dllexport). */ .section .drectve .ascii " -export:lzma_crc64" |