And here's a patch to the above that might actually work...

Rob Landley landley at trommello.org
Thu Aug 22 10:21:05 PDT 2002


To remove a few bugs I introduced this morning, apply this patch or
something very like it.

No idea if the build will make it to the end, or if the result will actually
work.  (-fomit-frame-pointer is new, might break something.)

It takes about an hour and a half to build on an athlon 700.  (For
fun, try "time ./build.sh" :)

Rob

--- /home/landley/build.sh      Thu Aug 22 13:15:01 2002
+++ build.sh    Thu Aug 22 13:12:34 2002
@@ -2,7 +2,7 @@

 # Redefine these environment variables for your target build environment.

-export MOUNT=/home/image2       # Where to install to
+export MOUNT=/home/image6       # Where to install to
 export PARTITION=none           # Partition to mount $MOUNT on

 # Duct Tape Linux - main build script.
@@ -25,7 +25,7 @@
 export SOURCE=`pwd`                   # If source code isn't in current dir.
 export LOOPBACK= # -o loop            # If installing onto loopback partition.

-export CFLAGS="-Os -march=i686 -fno-frame-pointer"
+export CFLAGS="-Os -march=i686 -fomit-frame-pointer"
 export CXXFLAGS=$CFLAGS

 # Blue background, white text, clear screen.
@@ -56,6 +56,7 @@
 echo -e "\e[0m\e[44m\e[31m\e[1m"
 echo =============================static build================================

+mkdir -p $MOUNT/usr/src
 cp -r $SOURCE/base $MOUNT/usr/src &&
 $SOURCE/make-static.sh
--- /home/landley/make-static.sh        Thu Aug 22 13:15:07 2002
+++ make-static.sh      Thu Aug 22 13:12:34 2002
@@ -15,7 +15,7 @@
 cd $MOUNT &&
 mkdir -p bin dev/pts home lib mnt proc sbin opt var usr/local &&
 cd usr &&
-mkdir bin etc include lib sbin share src &&
+mkdir bin etc include lib sbin share &&
 ln -s share/man &&
 ln -s share/doc &&
 ln -s share/info &&
@@ -25,8 +25,7 @@
 cd man &&
 mkdir man{1,2,3,4,5,6,7,8} &&
 cd $MOUNT/var &&
-mkdir -p lock log mail run spool tmp opt cache lib/misc local etc/opt root boot
-&&
+mkdir -p lock log mail run spool tmp opt cache lib/misc local etc/opt root boot &&
 cd $MOUNT/opt &&
 mkdir bin doc include info lib man &&
 cd $MOUNT &&
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list