From: Costin Lupu Date: Sun, 13 Oct 2019 15:03:33 +0000 (+0300) Subject: Makefile.uk: Skip building types.c and closures.c with Python3 X-Git-Tag: RELEASE-0.4^0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a9d68496a52f324bfa32ee52d46b7ab62353ec38;p=unikraft%2Flibs%2Fgcc.git Makefile.uk: Skip building types.c and closures.c with Python3 Python3 comes with its own types and closures when enabling the _ctypes extension. We currently check if the extension is enabled, but a more generic symbol should be defined at some point. Signed-off-by: Costin Lupu Reviewed-by: Felipe Huici --- diff --git a/Makefile.uk b/Makefile.uk index 276ab1c..d5901e2 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -109,11 +109,13 @@ LIBFFI_CFLAGS-y += -DHAVE_CONFIG_H -fexceptions -Wall \ -Wno-implicit-function-declaration -Wno-sign-compare \ -Wno-unused-parameter -Wno-empty-body -Wno-implicit-fallthrough +ifneq ($(CONFIG_LIBPYTHON3_EXTENSION_CTYPES),y) +LIBFFI_SRCS-y += $(LIBFFI_EXTRACTED)/src/types.c LIBFFI_SRCS-y += $(LIBFFI_EXTRACTED)/src/closures.c +endif LIBFFI_SRCS-y += $(LIBFFI_EXTRACTED)/src/java_raw_api.c LIBFFI_SRCS-y += $(LIBFFI_EXTRACTED)/src/prep_cif.c LIBFFI_SRCS-y += $(LIBFFI_EXTRACTED)/src/raw_api.c -LIBFFI_SRCS-y += $(LIBFFI_EXTRACTED)/src/types.c LIBFFI_SRCS-$(CONFIG_ARCH_X86_64) += $(LIBFFI_EXTRACTED)/src/x86/ffi64.c LIBFFI_SRCS-$(CONFIG_ARCH_X86_64) += $(LIBFFI_EXTRACTED)/src/x86/unix64.S