blob: d3ad566dbc53ca1b28622f20a5692110f850a196 [file] [log] [blame]
The Android Open Source Projectb6c1cf62008-10-21 07:00:00 -07001# 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
17ifeq ($(combo_target),HOST_)
18# $(1): The file to check
19define get-file-size
20stat --format "%s" "$(1)"
21endef
22
23# Which gcc to use to build qemu, which doesn't work right when
24# built with 4.2.1 or later.
25GCCQEMU := prebuilt/linux-x86/toolchain/i686-linux-gnu-3.4.6/bin/gcc
26
27endif # HOST