Jean-Baptiste Queru | 9b4a812 | 2010-02-23 12:36:56 -0800 | [diff] [blame] | 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 |
| 21 | define get-file-size |
| 22 | stat --format "%s" "$(1)" | tr -d '\n' |
| 23 | endef |
| 24 | |
Andy McFadden | 16e95bb | 2010-02-24 08:29:39 -0800 | [diff] [blame] | 25 | # We build everything in 32-bit, because some host tools are |
| 26 | # 32-bit-only anyway (emulator, acc), and because it gives us |
| 27 | # more consistency between the host tools and the target. |
| 28 | # The exception is the host side of the simulator, which |
| 29 | # requires to use the default size, as wxWidgets code otherwise |
| 30 | # fails to build. |
Jean-Baptiste Queru | 9b4a812 | 2010-02-23 12:36:56 -0800 | [diff] [blame] | 31 | ifneq ($(TARGET_SIMULATOR),true) |
| 32 | HOST_GLOBAL_CFLAGS += -m32 |
| 33 | HOST_GLOBAL_LDFLAGS += -m32 |
| 34 | endif |
| 35 | |
| 36 | HOST_GLOBAL_CFLAGS += -fPIC |
| 37 | HOST_GLOBAL_CFLAGS += \ |
| 38 | -include $(call select-android-config-h,linux-x86) |
| 39 | |
| 40 | HOST_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined |