Merge "Simplify defining the linker architecture macro."
This commit is contained in:
commit
421e911a0b
@ -33,21 +33,10 @@ LOCAL_CPPFLAGS += \
|
|||||||
# We need to access Bionic private headers in the linker.
|
# We need to access Bionic private headers in the linker.
|
||||||
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/
|
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),arm)
|
# Make the target architecture available at compile time.
|
||||||
LOCAL_CFLAGS += -DANDROID_ARM_LINKER
|
# TODO: do we really need this? why not just use __aarch64__, __arm__, __i386__, __mips__, __x86_64__?
|
||||||
endif
|
uppercase_target_arch := $(shell tr '[:lower:]' '[:upper:]' <<< $(TARGET_ARCH))
|
||||||
|
LOCAL_CFLAGS += -DANDROID_$(uppercase_target_arch)_LINKER
|
||||||
ifeq ($(TARGET_ARCH),mips)
|
|
||||||
LOCAL_CFLAGS += -DANDROID_MIPS_LINKER
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),x86)
|
|
||||||
LOCAL_CFLAGS += -DANDROID_X86_LINKER
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),x86_64)
|
|
||||||
LOCAL_CFLAGS += -DANDROID_X86_64_LINKER
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86_64))
|
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86_64))
|
||||||
LOCAL_MODULE := linker64
|
LOCAL_MODULE := linker64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user