Pure LFS Hint - good to go

Greg Schafer gschafer at zip.com.au
Tue Feb 18 22:03:15 PST 2003


On Tue, Feb 18, 2003 at 11:55:56PM -0600, Tushar Teredesai wrote:
> Yeah I had looked that up, but then a sed for config.sh will be 
> converted into a sed/patch for hints/linux.sh.

Yep agreed. Ok, fsck it. Here's a patch which appears to do the right thing.
I think I'll still stick with miniperl even though a full perl will actually
build in Ch 5 with this patch applied.

Greg
-------------- next part --------------
diff -uNr perl-5.8.0.orig/hints/linux.sh perl-5.8.0/hints/linux.sh
--- perl-5.8.0.orig/hints/linux.sh	2002-06-05 23:46:00.000000000 +1000
+++ perl-5.8.0/hints/linux.sh	2003-02-19 16:32:18.000000000 +1100
@@ -51,9 +51,9 @@
 # We don't use __GLIBC__ and  __GLIBC_MINOR__ because they 
 # are insufficiently precise to distinguish things like
 # libc-2.0.6 and libc-2.0.7.
-if test -L /lib/libc.so.6; then
-    libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
-    libc=/lib/$libc
+if test -L /stage1/lib/libc.so.6; then
+    libc=`ls -l /stage1/lib/libc.so.6 | awk '{print $NF}'`
+    libc=/stage1/lib/$libc
 fi
 
 # Configure may fail to find lstat() since it's a static/inline
@@ -282,3 +282,6 @@
 	;;
 esac
 EOCBU
+locincpth=""
+loclibpth=""
+glibpth="/stage1/lib"


More information about the lfs-dev mailing list