OSDN Git Service

cheets-libffi: Use assembly variant suitable for Android toolchain
authorTomasz Figa <tfiga@google.com>
Tue, 1 Dec 2015 07:56:52 +0000 (16:56 +0900)
committerTomasz Figa <tfiga@google.com>
Wed, 2 Dec 2015 04:34:11 +0000 (04:34 +0000)
Android AS does not seem to support the @ syntax, however seems to work
fine with code variants used when HAVE_AS_X86_PCREL is defined, so
let's define it and fix build failures.

Change-Id: I29c8bacb82e6119195d41f40e80113938049cd62

Android.mk

index 1a8b399..09ad513 100644 (file)
@@ -45,10 +45,12 @@ endif
 
 ifeq ($(ffi_os)-$(ffi_arch),linux-x86)
 LOCAL_SRC_FILES := src/x86/ffi.c src/x86/sysv.S
+LOCAL_ASFLAGS += -DHAVE_AS_X86_PCREL
 endif
 
 ifeq ($(ffi_os)-$(ffi_arch),linux-x86_64)
 LOCAL_SRC_FILES := src/x86/ffi64.c src/x86/unix64.S
+LOCAL_ASFLAGS += -DHAVE_AS_X86_PCREL
 endif
 
 ifeq ($(LOCAL_SRC_FILES),)