summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2018-01-07 08:59:18 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-08 08:48:25 +0000
commit89c323417b9d94ccb1cf5c81aeea977b4375dab5 (patch)
treec89210e61dbc4f18a7719ebf6de35c81299f8147 /meta/recipes-support
parent9a0790120dbe046091cd0392dc576cf9316b7acf (diff)
downloadpoky-89c323417b9d94ccb1cf5c81aeea977b4375dab5.tar.gz
icu-dbg: improve reproducibility
Make sure build host references do not end up being compiled in the image. This only affects libicutu and icu-dbg. (From OE-Core rev: e9dfe7eb7f61b909ae7d034e80cfbebc1fad018b) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/icu/icu.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-support/icu/icu.inc b/meta/recipes-support/icu/icu.inc
index 3fb16b0f68..5cf7b11d59 100644
--- a/meta/recipes-support/icu/icu.inc
+++ b/meta/recipes-support/icu/icu.inc
@@ -38,6 +38,15 @@ do_configure_prepend_libc-musl () {
38 sed -i -e 's,DU_HAVE_STRTOD_L=1,DU_HAVE_STRTOD_L=0,' ${S}/configure.ac 38 sed -i -e 's,DU_HAVE_STRTOD_L=1,DU_HAVE_STRTOD_L=0,' ${S}/configure.ac
39} 39}
40 40
41do_compile_prepend_class-target () {
42 # Make sure certain build host references do not end up being compiled
43 # in the image. This only affects libicutu and icu-dbg
44 sed \
45 -e 's,DU_BUILD=,DU_BUILD_unused=,g' \
46 -e '/^CPPFLAGS.*/ s,--sysroot=${STAGING_DIR_TARGET},,g' \
47 -i ${B}/tools/toolutil/Makefile
48}
49
41PREPROCESS_RELOCATE_DIRS = "${datadir}/${BPN}/${PV}" 50PREPROCESS_RELOCATE_DIRS = "${datadir}/${BPN}/${PV}"
42do_install_append_class-native() { 51do_install_append_class-native() {
43 mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config 52 mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config