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 | |
| 10 | $(combo_target)GLOBAL_CFLAGS += -fPIC -m32 |
| 11 | $(combo_target)GLOBAL_CFLAGS += \ |
| 12 | -include $(call select-android-config-h,linux-x86) |
| 13 | $(combo_target)GLOBAL_LDFLAGS += -m32 |
| 14 | |
| 15 | $(combo_target)NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined |
| 16 | |
| 17 | ifeq ($(combo_target),HOST_) |
| 18 | # $(1): The file to check |
| 19 | define get-file-size |
| 20 | stat --format "%s" "$(1)" |
| 21 | endef |
| 22 | |
| 23 | # Which gcc to use to build qemu, which doesn't work right when |
| 24 | # built with 4.2.1 or later. |
| 25 | GCCQEMU := prebuilt/linux-x86/toolchain/i686-linux-gnu-3.4.6/bin/gcc |
| 26 | |
| 27 | endif # HOST |