diff options
Diffstat (limited to 'meta/recipes-devtools/libtool/remove-buildpaths.inc')
-rw-r--r-- | meta/recipes-devtools/libtool/remove-buildpaths.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libtool/remove-buildpaths.inc b/meta/recipes-devtools/libtool/remove-buildpaths.inc new file mode 100644 index 0000000000..1ca95aeace --- /dev/null +++ b/meta/recipes-devtools/libtool/remove-buildpaths.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | do_install:append () { | ||
2 | sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \ | ||
3 | -e "s@${DEBUG_PREFIX_MAP}@@g" \ | ||
4 | -e 's@${STAGING_DIR_HOST}@@g' \ | ||
5 | -e 's@${STAGING_DIR_NATIVE}@@g' \ | ||
6 | -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \ | ||
7 | -e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \ | ||
8 | -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \ | ||
9 | -e 's@^\(predep_objects="\).*@\1"@' \ | ||
10 | -e 's@^\(postdep_objects="\).*@\1"@' \ | ||
11 | -e "s@${HOSTTOOLS_DIR}/@@g" \ | ||
12 | -i ${D}${bindir}/libtool | ||
13 | } | ||