]> xenbits.xensource.com Git - unikraft/libs/gcc.git/commitdiff
Makefile.uk: Skip building types.c and closures.c with Python3 RELEASE-0.4 RELEASE-0.5
authorCostin Lupu <costin.lupu@cs.pub.ro>
Sun, 13 Oct 2019 15:03:33 +0000 (18:03 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Tue, 15 Oct 2019 07:07:12 +0000 (09:07 +0200)
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 <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Makefile.uk

index 276ab1c78e2610871d6f56dacba939fa21453795..d5901e2699bc527176fdcb8146e5699e9c710003 100644 (file)
@@ -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