summaryrefslogtreecommitdiff
path: root/recipes/mysql/mysql_4.1.22.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-11-11 16:24:35 +0100
committerKoen Kooi <koen@openembedded.org>2009-11-11 16:24:35 +0100
commitd3d76c149b8fba3d1ef6d803d7a3b6fcfca58b2f (patch)
tree9cf1c794451650b1ecddb92d004d888e4955cbf1 /recipes/mysql/mysql_4.1.22.bb
parentb043fd916d4e8ab4a823b0ebd4eb5ab336ff2baf (diff)
mysql: adopt to new style sysroot stuff
Diffstat (limited to 'recipes/mysql/mysql_4.1.22.bb')
-rw-r--r--recipes/mysql/mysql_4.1.22.bb8
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes/mysql/mysql_4.1.22.bb b/recipes/mysql/mysql_4.1.22.bb
index 9e5ff885f9..1dacff6781 100644
--- a/recipes/mysql/mysql_4.1.22.bb
+++ b/recipes/mysql/mysql_4.1.22.bb
@@ -38,9 +38,11 @@ do_stage() {
oe_libinstall -a -C libmysqld libmysqld ${STAGING_LIBDIR}
}
-do_stage_append() {
- sed -i -es,^pkgincludedir=\'/usr/include/mysql\',pkgincludedir=\'${STAGING_INCDIR}\', ${STAGING_BINDIR_CROSS}/mysql_config
- sed -i -es,^pkglibdir=\'/usr/lib/mysql\',pkglibdir=\'${STAGING_LIBDIR}\', ${STAGING_BINDIR_CROSS}/mysql_config
+SYSROOT_PREPROCESS_FUNCS += "mysqlmangle"
+
+mysqlmangle() {
+ sed -i -es,^pkgincludedir=\'/usr/include/mysql\',pkgincludedir=\'${STAGING_INCDIR}\', ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/mysql_config
+ sed -i -es,^pkglibdir=\'/usr/lib/mysql\',pkglibdir=\'${STAGING_LIBDIR}\', ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/mysql_config
}
do_install() {