The Android Open Source Project | b6c1cf6 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | # Configuration for Linux on x86. |
| 2 | # Included by combo/select.make |
| 3 | |
| 4 | # right now we get these from the environment, but we should |
| 5 | # pick them from the tree somewhere |
| 6 | $(combo_target)CC := $(CC) |
| 7 | $(combo_target)CXX := $(CXX) |
| 8 | $(combo_target)AR := $(AR) |
| 9 | |
The Android Open Source Project | b6c1cf6 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 10 | ifeq ($(combo_target),HOST_) |
| 11 | # $(1): The file to check |
| 12 | define get-file-size |
| 13 | stat --format "%s" "$(1)" |
| 14 | endef |
| 15 | |
| 16 | # Which gcc to use to build qemu, which doesn't work right when |
| 17 | # built with 4.2.1 or later. |
| 18 | GCCQEMU := prebuilt/linux-x86/toolchain/i686-linux-gnu-3.4.6/bin/gcc |
The Android Open Source Project | dcc08f0 | 2008-12-17 18:03:49 -0800 | [diff] [blame] | 19 | endif # _HOST |
The Android Open Source Project | b6c1cf6 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 20 | |
The Android Open Source Project | dcc08f0 | 2008-12-17 18:03:49 -0800 | [diff] [blame] | 21 | |
| 22 | # On the sim, we build the "host" tools in 64 bit iff the compiler |
| 23 | # does it for us automatically. In other words, that means on 64 bit |
| 24 | # system, they're 64 bit and on 32 bit systems, they're 32 bits. In |
| 25 | # all other cases, we build 32 bit, since this is what we release. |
| 26 | ifneq ($(combo_target)$(TARGET_SIMULATOR),HOST_true) |
| 27 | $(combo_target)GLOBAL_CFLAGS := $($(combo_target)GLOBAL_CFLAGS) -m32 |
| 28 | $(combo_target)GLOBAL_LDFLAGS := $($(combo_target)GLOBAL_LDFLAGS) -m32 |
| 29 | endif |
| 30 | |
| 31 | |
| 32 | $(combo_target)GLOBAL_CFLAGS += -fPIC |
| 33 | $(combo_target)GLOBAL_CFLAGS += \ |
| 34 | -include $(call select-android-config-h,linux-x86) |
| 35 | |
| 36 | $(combo_target)NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined |
| 37 | |
| 38 | |