On Nov 3, 2012, at 11:32 AM, William Harrington wrote:
=======Begin command snipet===============
sed '/src_make_prime_list/d' -i Makefile
depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o
$||'`;\
gcc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src -
fdiagnostics-show-option -funit-at-a-time -g -O2 -MT src/make-prime-
list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o src/make-
prime-list.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 -
Wl,--as-needed -o src/make-prime-list src/make-prime-list.o
==========End command snipet=============
Okay this is the final issue of commands for it to build properly.
Not sure what is up with the hostname.1 man page. But I had to remove
it from the Makefile with a sed.
http://pastebin.cross-lfs.org/230700
=============BEGIN Command snipet candidate===============
touch man/uname.1 man/hostname.1
./configure --prefix=/tools \
--build=${CLFS_HOST} --host=${CLFS_TARGET} \
--enable-install-program=hostname --cache-file=config.cache
sed '/src_make_prime_list/d' -i Makefile
depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o
$||'`;\
gcc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src -
fdiagnostics-show-option -funit-at-a-time -g -O2 -MT src/make-prime-
list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o src/make-
prime-list.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 -Wl,--
as-needed -o src/make-prime-list src/make-prime-list.o
sed -i '/hostname.1/d' -i Makefile
make
make install
==============END Command snipet cnadidate=================
Seems like a lot to put in the book for this, but hey! Until coreutils
makes a patch or releases a fix, this is it for now
If it works for others I'll commit it to the book later this afternoon.
Sincerely,
William Harrington
_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org