summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-12-20 11:18:28 -0800
committerYing Wang <wangying@google.com>2010-12-20 11:18:28 -0800
commit099fecd759ce54168fe4094880d1ca748e8906b9 (patch)
treecbc425ecae5c16939caa5e2797ba2fe0b2cffba6
parent9bfb81426bd0c85ac270e7f2f5df335de88da978 (diff)
downloadbuild-099fecd759ce54168fe4094880d1ca748e8906b9.zip
build-099fecd759ce54168fe4094880d1ca748e8906b9.tar.gz
build-099fecd759ce54168fe4094880d1ca748e8906b9.tar.bz2
Use PRIVATE_CXX in HOST modules.
This fixes the build error: out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_util_intermediates/neo_err.o: file not recognized: File format not recognized See also CL #84578 Change-Id: Ib91230c7a5c9809eb1935959eaa9be8fa7c596b9
-rw-r--r--core/definitions.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/definitions.mk b/core/definitions.mk
index 19bba5c..11cea3f 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1001,7 +1001,7 @@ endef
# it to be overriden en-masse see combo/linux-arm.make for an example.
ifneq ($(HOST_CUSTOM_LD_COMMAND),true)
define transform-host-o-to-shared-lib-inner
-$(HOST_CXX) \
+$(PRIVATE_CXX) \
-Wl,-rpath-link=$(TARGET_OUT_INTERMEDIATE_LIBRARIES) \
-Wl,-rpath,\$$ORIGIN/../lib \
-shared -Wl,-soname,$(notdir $@) \
@@ -1164,7 +1164,7 @@ endef
ifneq ($(HOST_CUSTOM_LD_COMMAND),true)
define transform-host-o-to-executable-inner
-$(HOST_CXX) \
+$(PRIVATE_CXX) \
-Wl,-rpath-link=$(TARGET_OUT_INTERMEDIATE_LIBRARIES) \
-Wl,-rpath,\$$ORIGIN/../lib \
$(HOST_GLOBAL_LD_DIRS) \