~ruther/guix-local

ref: 86b2c8dbc7854fa8d3fbf634d4a7115ae2cf585e guix-local/gnu/packages/patches/sbc-fix-build-non-x86.patch -rw-r--r-- 562 bytes
86b2c8db — Ricardo Wurmus gnu: r-brglm2: Update to 1.0.1. 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Don't refer to x86-specific function on other architectures to avoid linker error.

Submitted upstream at <https://marc.info/?l=linux-bluetooth&m=160857625608440&w=2>

diff --git a/sbc/sbc_primitives.c b/sbc/sbc_primitives.c
--- a/sbc/sbc_primitives.c
+++ b/sbc/sbc_primitives.c
@@ -593,7 +593,9 @@ static int sbc_calc_scalefactors_j(
 
 static void sbc_init_primitives_x86(struct sbc_encoder_state *state)
 {
+#if defined(__x86_64__) || defined(__i386__)
 	__builtin_cpu_init();
+#endif
 
 #ifdef SBC_BUILD_WITH_MMX_SUPPORT
 	if (__builtin_cpu_supports("mmx"))