diff --git a/pkg/python/gen.lua b/pkg/python/gen.lua index 7ad1ff99..d50bb4b6 100644 --- a/pkg/python/gen.lua +++ b/pkg/python/gen.lua @@ -6,6 +6,13 @@ cflags{ '-isystem $builddir/pkg/linux-headers/include', } +if config.target.platform:match('[^-]*') == 'x86_64' then + cflags{ + '-D HAVE_GCC_ASM_FOR_X64=1', + '-D HAVE_GCC_ASM_FOR_X87=1', + } +end + pkg.deps = {'pkg/linux-headers/headers'} local libs = {} local modules = load 'modules.lua' diff --git a/pkg/python/pyconfig.h b/pkg/python/pyconfig.h index f7ae4f7f..01ae21fc 100644 --- a/pkg/python/pyconfig.h +++ b/pkg/python/pyconfig.h @@ -133,8 +133,8 @@ #define HAVE_GAI_STRERROR 1 /* #undef HAVE_GAMMA */ /* #undef HAVE_GCC_ASM_FOR_MC68881 */ -#define HAVE_GCC_ASM_FOR_X64 1 -#define HAVE_GCC_ASM_FOR_X87 1 +/* #undef HAVE_GCC_ASM_FOR_X64 */ +/* #undef HAVE_GCC_ASM_FOR_X87 */ #define HAVE_GCC_UINT128_T 1 #define HAVE_GETADDRINFO 1 #define HAVE_GETC_UNLOCKED 1