Update for new BUILD_DIR and SRC_DIR variables
[hvlinux.git] / stage2 / pkg / readline
index 03a69d0..da4b0af 100644 (file)
@@ -2,18 +2,14 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \    
-        --libdir=/lib"
-    
-    cd ${LFS_TMP}/${PACKAGE}
+    CONFIGURE_OPTS+=" --libdir=/lib"
 
     # 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()