diff -Nru sbc-1.5.orig/sbc/sbc_primitives.c sbc-1.5/sbc/sbc_primitives.c --- sbc-1.5.orig/sbc/sbc_primitives.c 2020-12-07 23:26:08.000000000 +0100 +++ sbc-1.5/sbc/sbc_primitives.c 2020-12-11 10:49:43.145713370 +0100 @@ -591,6 +591,7 @@ return joint; } +#if defined(__GNUC__) && (defined(__i386__) || defined(__amd64__)) static void sbc_init_primitives_x86(struct sbc_encoder_state *state) { __builtin_cpu_init(); @@ -605,6 +606,7 @@ sbc_init_primitives_sse(state); #endif } +#endif /* * Detect CPU features and setup function pointers @@ -630,8 +632,9 @@ state->implementation_info = "Generic C"; /* X86/AMD64 optimizations */ +#if defined(__GNUC__) && (defined(__i386__) || defined(__amd64__)) sbc_init_primitives_x86(state); - +#endif /* ARM optimizations */ #ifdef SBC_BUILD_WITH_ARMV6_SUPPORT sbc_init_primitives_armv6(state);