diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2009-11-19 17:03:53 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2009-11-19 17:04:41 -0200 |
commit | 5555bc82e576dfe4a58b5a0ccf0ee12aed8ad2aa (patch) | |
tree | 5abf00be9917d78a0e32e3b30c7852159d7abe73 /recipes/lzma/lzma.inc | |
parent | e0663b38790816d40d8d168d836d2a5c1232e6ea (diff) |
lzma.inc: use CXX and CC environment values to really do cross compile
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes/lzma/lzma.inc')
-rw-r--r-- | recipes/lzma/lzma.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes/lzma/lzma.inc b/recipes/lzma/lzma.inc index bffbeb2d3b..4d31a44cd0 100644 --- a/recipes/lzma/lzma.inc +++ b/recipes/lzma/lzma.inc @@ -2,7 +2,7 @@ DESCRIPTION = "LZMA is a general compression method. LZMA provides high compress HOMEPAGE = "http://www.7-zip.org/" LICENSE = "LGPL" DEPENDS = "zlib" -INC_PR = "r2" +INC_PR = "r3" SRC_URI = "http://downloads.sourceforge.net/sevenzip/lzma${@bb.data.getVar('PV',d,1).replace('.','')}.tar.bz2 \ file://001-large_files.patch;patch=1 \ @@ -21,6 +21,11 @@ do_unpack_append() { os.system("find ${S} -type f -print0 | xargs -0 sed 's/\r$//' -i") } +do_patch_append() { + # Hack to ensure we use our environment values + os.system("find ${S} -type f -name makefile.gcc -print0 | xargs -0 sed 's/^CXX =/CXX ?=/;s/^CXX_C =/CXX_C ?=/;s/CXX_C/CC/' -i") +} + do_compile() { oe_runmake -C C/LzmaUtil oe_runmake -C CPP/7zip/Compress/LZMA_Alone |