summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOoi Cinly <cinly.ooi@intel.com>2017-08-16 09:17:50 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-18 23:46:38 +0100
commita3c1bbc88dbc16897077bef80029fdf0231b4443 (patch)
treebeb7d746eadb2e832e7e7b550f996ffcf4bf47af
parentd654f4934d9c877167c69216aabb80ff75beff40 (diff)
downloadpoky-a3c1bbc88dbc16897077bef80029fdf0231b4443.tar.gz
libtool: remove /absolute/path/to/host references
Removed all instances of -fdebug-prefix-map in LTCFLAGS declaration because they contain references to host system and are not needed. /absolute/path/to/host/dd was replaced with 'dd' in lt_truncate_bin declaration. Please take note that the location of regex is important for DEBUG_PREFIX_MAP. Removal of DEBUG_PREFIX_MAP has to be done before other regex command modify its option value. Both are modified because they affect binary reproducibility. [YOCTO #11656] (From OE-Core rev: 04db02138e363898e040e33557f1296e8a43c3fd) Signed-off-by: Ooi Cinly <cinly.ooi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/libtool/libtool_2.4.6.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/libtool_2.4.6.bb b/meta/recipes-devtools/libtool/libtool_2.4.6.bb
index 06abb05584..b02620b4b4 100644
--- a/meta/recipes-devtools/libtool/libtool_2.4.6.bb
+++ b/meta/recipes-devtools/libtool/libtool_2.4.6.bb
@@ -15,6 +15,7 @@ ACLOCALEXTRAPATH_class-target = ""
15 15
16do_install_append () { 16do_install_append () {
17 sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ 17 sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
18 -e "s@${DEBUG_PREFIX_MAP}@@g" \
18 -e 's@${STAGING_DIR_HOST}@@g' \ 19 -e 's@${STAGING_DIR_HOST}@@g' \
19 -e 's@${STAGING_DIR_NATIVE}@@g' \ 20 -e 's@${STAGING_DIR_NATIVE}@@g' \
20 -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \ 21 -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
@@ -22,5 +23,6 @@ do_install_append () {
22 -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \ 23 -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \
23 -e 's@^\(predep_objects="\).*@\1"@' \ 24 -e 's@^\(predep_objects="\).*@\1"@' \
24 -e 's@^\(postdep_objects="\).*@\1"@' \ 25 -e 's@^\(postdep_objects="\).*@\1"@' \
26 -e "s@${HOSTTOOLS_DIR}/@@g" \
25 -i ${D}${bindir}/libtool 27 -i ${D}${bindir}/libtool
26} 28}