blob: 372c63e1d4fa56032f5a67bb960b07fcf29257fc [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001# 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
10ifeq ($(combo_target),HOST_)
11# $(1): The file to check
12define get-file-size
13stat --format "%s" "$(1)"
14endef
15endif
16
17# On the sim, we build the "host" tools in 64 bit iff the compiler
18# does it for us automatically. In other words, that means on 64 bit
19# system, they're 64 bit and on 32 bit systems, they're 32 bits. In
20# all other cases, we build 32 bit, since this is what we release.
21ifneq ($(combo_target)$(TARGET_SIMULATOR),HOST_true)
22$(combo_target)GLOBAL_CFLAGS := $($(combo_target)GLOBAL_CFLAGS) -m32
23$(combo_target)GLOBAL_LDFLAGS := $($(combo_target)GLOBAL_LDFLAGS) -m32
24endif
25
26
27$(combo_target)GLOBAL_CFLAGS += -fPIC
28$(combo_target)GLOBAL_CFLAGS += \
29 -include $(call select-android-config-h,linux-x86)
30
31$(combo_target)NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined
32
33