The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # Configuration for Linux on x86. |
| 2 | # Included by combo/select.make |
| 3 | |
Andy McFadden | 8d7c2b5 | 2010-02-22 12:44:04 -0800 | [diff] [blame] | 4 | # Provide a default variant. |
Andy McFadden | e009f29 | 2010-02-23 10:24:33 -0800 | [diff] [blame^] | 5 | ifeq ($(TARGET_ARCH),x86) |
Andy McFadden | 8d7c2b5 | 2010-02-22 12:44:04 -0800 | [diff] [blame] | 6 | ifeq ($(strip $(TARGET_ARCH_VARIANT)),) |
| 7 | TARGET_ARCH_VARIANT := x86 |
| 8 | endif |
Andy McFadden | e009f29 | 2010-02-23 10:24:33 -0800 | [diff] [blame^] | 9 | endif |
Andy McFadden | 8d7c2b5 | 2010-02-22 12:44:04 -0800 | [diff] [blame] | 10 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 11 | # right now we get these from the environment, but we should |
| 12 | # pick them from the tree somewhere |
| 13 | $(combo_target)CC := $(CC) |
| 14 | $(combo_target)CXX := $(CXX) |
| 15 | $(combo_target)AR := $(AR) |
| 16 | |
| 17 | ifeq ($(combo_target),HOST_) |
| 18 | # $(1): The file to check |
| 19 | define get-file-size |
Doug Zongker | 742fa57 | 2009-07-08 12:09:04 -0700 | [diff] [blame] | 20 | stat --format "%s" "$(1)" | tr -d '\n' |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 21 | endef |
| 22 | endif |
| 23 | |
| 24 | # On the sim, we build the "host" tools in 64 bit iff the compiler |
| 25 | # does it for us automatically. In other words, that means on 64 bit |
| 26 | # system, they're 64 bit and on 32 bit systems, they're 32 bits. In |
| 27 | # all other cases, we build 32 bit, since this is what we release. |
| 28 | ifneq ($(combo_target)$(TARGET_SIMULATOR),HOST_true) |
| 29 | $(combo_target)GLOBAL_CFLAGS := $($(combo_target)GLOBAL_CFLAGS) -m32 |
| 30 | $(combo_target)GLOBAL_LDFLAGS := $($(combo_target)GLOBAL_LDFLAGS) -m32 |
| 31 | endif |
| 32 | |
| 33 | |
| 34 | $(combo_target)GLOBAL_CFLAGS += -fPIC |
| 35 | $(combo_target)GLOBAL_CFLAGS += \ |
| 36 | -include $(call select-android-config-h,linux-x86) |
| 37 | |
| 38 | $(combo_target)NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined |
| 39 | |
| 40 | |