From f948d62370e0180d7db4a2e78eb62c97b42d239d Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 15 Jun 2019 20:34:21 -0700 Subject: zstd: Only use __asm__ on GNU-compatible compilers --- ...y-use-__asm__-on-GNU-compatible-compilers.patch | 25 ++++++++++++++++++++++ pkg/zstd/ver | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch (limited to 'pkg/zstd') diff --git a/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch b/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch new file mode 100644 index 00000000..988a592b --- /dev/null +++ b/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch @@ -0,0 +1,25 @@ +From 6900865fb61bba4d91472d845118e0ffac4f7e39 Mon Sep 17 00:00:00 2001 +From: Michael Forney +Date: Mon, 10 Jun 2019 01:47:01 -0700 +Subject: [PATCH] Only use __asm__ on GNU-compatible compilers + +--- + lib/common/cpu.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/common/cpu.h b/lib/common/cpu.h +index 5f0923fc..76267fc3 100644 +--- a/lib/common/cpu.h ++++ b/lib/common/cpu.h +@@ -84,7 +84,7 @@ MEM_STATIC ZSTD_cpuid_t ZSTD_cpuid(void) { + : "a"(7), "c"(0) + : "edx"); + } +-#elif defined(__x86_64__) || defined(_M_X64) || defined(__i386__) ++#elif (defined(__x86_64__) || defined(_M_X64) || defined(__i386__)) && defined(__GNUC__) + U32 n; + __asm__("cpuid" : "=a"(n) : "a"(0) : "ebx", "ecx", "edx"); + if (n >= 1) { +-- +2.20.1 + diff --git a/pkg/zstd/ver b/pkg/zstd/ver index 27b849ed..76020791 100644 --- a/pkg/zstd/ver +++ b/pkg/zstd/ver @@ -1 +1 @@ -1.4.0 r0 +1.4.0 r1 -- cgit v1.2.3