On Wednesday 06 February 2008 7:42:28 pm Steve Crosby wrote:
> On Feb 4, 2008 12:47 PM, Baho Utot <[EMAIL PROTECTED]> wrote:
> > I am scripting a build of LFS 6.3 and I would like to be able to skip
> > 6.59 Stripping Again by adding CFLAGS=-s to the bashrc environment, then
> > building all the packages.
>
> Stripping is done by the linker, not the compiler, so you want to add
> the -s to the LDFLAGS instead. And no, it shouldn't cause any issues,
> although from memory not all programs respect LDFLAGS set from the
> environment, and hardcode values in makefiles. Also, the amount of
> disk space you will be saving by doing this is miniscule compared to
> the size of some of the packages - so there is no real advantage to
> doing it for each package as opposed to at the end.
>
> --
> -- -
> Steve Crosby

Thanks for the info

Other than my Build system that executes the 6.59 instructions barfs...
Below is what I am using
It runs through the entire set of instructions but seg faults after the run :(
.....
/tools/bin/strip: /usr/sbin/grub-install: File format not recognized
Stripping: /usr completed
Complete
make: *** [built] Segmentation fault
make: Leaving directory `/trunk/Chapter-06/Stripping'
make: *** [chapter-06] Error 2

Here is the contents of the files in question.

Master Makefile , Partial list
chapter-06: chapter-05
        @ echo "Building: $@"
        su -c "$(MAKE) -C Chapter-06/Creating-Directories"
        su -c "$(MAKE) -C Chapter-06/Creating-Essential-Files-Symlinks"
        su -c "$(MAKE) -C Chapter-06/Preparing-Virtual-Kernel-File-Systems"
        su -c "chroot "$(LFS)" /tools/bin/env -i \
            HOME=/root TERM="$(TERM)" PS1='\u:\w\$ ' \
            PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
            /tools/bin/bash --login -c /trunk/Chapter-06.sh"
        su -c "chroot $(LFS) /tools/bin/env -i \
            HOME=/root TERM="$(TERM)" PS1='\u:\w\$ ' \
            PATH=/bin:/usr/bin:/sbin:/usr/sbin \
            /tools/bin/bash --login -c /trunk/Chapter-06-Stripping.sh"

The last command is the bad boy the others run w/o error

/trunk/Chapter-06-Stripping.sh  full list
#!/tools/bin/bash -e
cd /trunk/Chapter-06; /tools/bin/make -C Stripping

/trunk/Chapter-06/Stripping/Makefile full list
REPO = http://svn.******.com/LFS/trunk
PKG = $(shell basename `pwd`)
built:
        @ echo "Building: $(PKG)"
        ./Wrapper.sh Build && touch built
clean:
        rm -rf *.Log built install FILELIST *.pkg* *~ Uninstall
svn: clean
        @echo "Adding to repository: $(REPO)-> $(PKG)"
        svn add ../$(PKG)
        svn commit -m "Added: $(PKG)"

/trunk/Chapter-06/Stripping/Wrapper.sh full list
#!/tools/bin/bash
./$1 2>&1 | tee $1.Log
exit ${PIPESTATUS[0]}

/trunk/Chapter-06/Stripping/Build: full list
#!/tools/bin/bash
set +h
name=Stripping
/tools/bin/find /{bin,lib,sbin} -type 
f -exec /tools/bin/strip --strip-debug '{}' ';'
echo "Stripping: Root completed"
/tools/bin/find /usr/{bin,lib,sbin} -type 
f -exec /tools/bin/strip --strip-debug '{}' ';'
echo "Stripping: /usr completed"
echo "Complete" 
exit 0

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to