postfix: remove host references from makedefs.out

Several -I definitions contain the value of ${STAGING_DIR_TARGET}
which should be removed to reference directories on the target.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
This commit is contained in:
Slater, Joseph 2018-03-19 16:50:25 -07:00 committed by Armin Kuster
parent 51411b3c7a
commit 83cd75793c

View File

@ -217,6 +217,7 @@ do_install_append_class-native() {
do_install_append_class-target() {
# Remove references to buildmachine paths in target makedefs.out
sed -i 's:-fdebug-prefix-map[^ ]*::g; s:--sysroot=${STAGING_DIR_TARGET}::g' ${D}/etc/postfix/makedefs.out
sed -i 's:-I${STAGING_DIR_TARGET}:-I:g' ${D}/etc/postfix/makedefs.out
}
ALTERNATIVE_${PN} = "sendmail"