Update for new BUILD_DIR and SRC_DIR variables
[hvlinux.git] / stage2 / pkg / readline
index 452be2f..da4b0af 100644 (file)
@@ -4,14 +4,12 @@ hvconfig_pre()
 {
     CONFIGURE_OPTS+=" --libdir=/lib"
 
-    cd ${LFS_TMP}/${PACKAGE}
-
     # Reinstalling Readline will cause the old libraries to be moved to
     # <libraryname>.old. While this is normally not a problem, in some
     # cases it can trigger a linking bug in ldconfig. This can be
     # avoided by issuing the following two seds:
-    sed -i '/MV.*old/d' Makefile.in
-    sed -i '/{OLDSUFF}/c:' support/shlib-install
+    sed -i '/MV.*old/d' ${SRC_DIR}/Makefile.in
+    sed -i '/{OLDSUFF}/c:' ${SRC_DIR}/support/shlib-install
 }
 
 hvbuild()