forked from openkylin/platform_build
Build host tools as 32bit on all Darwin machines.
Change-Id: I121b388056e68b787518c66a01c172bc4ffaef9b
This commit is contained in:
parent
13a90e3a20
commit
ebc2869b8d
|
@ -17,6 +17,13 @@
|
|||
# Configuration for Darwin (Mac OS X) on x86.
|
||||
# Included by combo/select.mk
|
||||
|
||||
# We build everything in 32-bit, because some host tools are
|
||||
# 32-bit-only anyway (emulator, acc), and because it gives us
|
||||
# more consistency between the host tools and the target.
|
||||
HOST_GLOBAL_CFLAGS += -m32
|
||||
HOST_GLOBAL_LDFLAGS += -m32
|
||||
|
||||
|
||||
HOST_GLOBAL_CFLAGS += -fPIC
|
||||
HOST_NO_UNDEFINED_LDFLAGS := -Wl,-undefined,error
|
||||
|
||||
|
@ -38,6 +45,7 @@ define transform-host-o-to-shared-lib-inner
|
|||
$(HOST_CXX) \
|
||||
-dynamiclib -single_module -read_only_relocs suppress \
|
||||
$(HOST_GLOBAL_LD_DIRS) \
|
||||
$(HOST_GLOBAL_LDFLAGS) \
|
||||
$(PRIVATE_ALL_OBJECTS) \
|
||||
$(call normalize-target-libraries,$(PRIVATE_ALL_SHARED_LIBRARIES)) \
|
||||
$(call normalize-target-libraries,$(PRIVATE_ALL_WHOLE_STATIC_LIBRARIES)) \
|
||||
|
@ -53,6 +61,7 @@ $(HOST_CXX) \
|
|||
-o $@ \
|
||||
-Wl,-dynamic -headerpad_max_install_names \
|
||||
$(HOST_GLOBAL_LD_DIRS) \
|
||||
$(HOST_GLOBAL_LDFLAGS) \
|
||||
$(call normalize-target-libraries,$(PRIVATE_ALL_SHARED_LIBRARIES)) \
|
||||
$(PRIVATE_ALL_OBJECTS) \
|
||||
$(call normalize-target-libraries,$(PRIVATE_ALL_WHOLE_STATIC_LIBRARIES)) \
|
||||
|
|
Loading…
Reference in New Issue