HOST_linux-x86.mk revision 9b4a81237be29b0aae50d1e370b63a07ea2b88b9
1#
2# Copyright (C) 2006 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# Configuration for builds hosted on linux-x86.
18# Included by combo/select.mk
19
20# $(1): The file to check
21define get-file-size
22stat --format "%s" "$(1)" | tr -d '\n'
23endef
24
25# The emulator is 32-bit-only. Force host tools to be built
26# in 32-bit when the emulator is involved.
27# Why we don't also force simulator builds to be 32-bit is a mystery.
28ifneq ($(TARGET_SIMULATOR),true)
29HOST_GLOBAL_CFLAGS += -m32
30HOST_GLOBAL_LDFLAGS += -m32
31endif
32
33HOST_GLOBAL_CFLAGS += -fPIC
34HOST_GLOBAL_CFLAGS += \
35	-include $(call select-android-config-h,linux-x86)
36
37HOST_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined
38