[18/20] Libtool: Fix CC/CXX flags

Submitted by Yann Diorcet on Aug. 6, 2014, 7:16 p.m.

Details

Message ID 1407352611-7652-18-git-send-email-diorcet.yann@gmail.com
State New
Delegated to: Esben Haabendal
Headers show

Commit Message

Yann Diorcet Aug. 6, 2014, 7:16 p.m.
---
 recipes/libtool/libtool-common.inc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/recipes/libtool/libtool-common.inc b/recipes/libtool/libtool-common.inc
index dd1b28d..bf15c16 100644
--- a/recipes/libtool/libtool-common.inc
+++ b/recipes/libtool/libtool-common.inc
@@ -10,7 +10,7 @@  RECIPE_TYPES = "machine native cross sdk-cross"
 require conf/fetch/gnu.conf
 SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz"
 
-inherit autotools
+inherit autotools c++
 
 C_DEPENDS = "target-cross:cc"
 
@@ -29,14 +29,20 @@  HOST_EXEEXT:cross		= "${TARGET_EXEEXT}"
 HOST_PREFIX:cross		= "${TARGET_PREFIX}"
 HOST_CPPFLAGS:cross		= "${TARGET_CPPFLAGS}"
 HOST_CFLAGS:cross		= "${TARGET_CFLAGS}"
+HOST_CXXFLAGS:cross		= "${TARGET_CXXFLAGS}"
 HOST_LDFLAGS:cross		= "${TARGET_LDFLAGS}"
+HOST_CC_PROG:cross		= "${TARGET_CC_PROG}"
+HOST_CXX_PROG:cross		= "${TARGET_CXX_PROG}"
 HOST_ARCH:sdk-cross		= "${TARGET_ARCH}"
 HOST_FPU:sdk-cross		= "${TARGET_FPU}"
 HOST_EXEEXT:sdk-cross		= "${TARGET_EXEEXT}"
 HOST_PREFIX:sdk-cross		= "${TARGET_PREFIX}"
 HOST_CPPFLAGS:sdk-cross		= "${TARGET_CPPFLAGS}"
 HOST_CFLAGS:sdk-cross		= "${TARGET_CFLAGS}"
+HOST_CXXFLAGS:sdk-cross		= "${TARGET_CXXFLAGS}"
 HOST_LDFLAGS:sdk-cross		= "${TARGET_LDFLAGS}"
+HOST_CC_PROG:sdk-cross		= "${TARGET_CC_PROG}"
+HOST_CXX_PROG:sdk-cross		= "${TARGET_CXX_PROG}"
 
 do_install[postfuncs] += "do_install_symlinks"
 do_install_symlinks () {