On Nov 3, 2012, at 9:56 AM, William Harrington wrote:
Yeah 8.19 does fine. 8.20 has some changes where the programs to not
be installed, but are generated for use with the test suites are
built using the target compiler and not the host compiler so the
host system cannot run them when generating lists.
I have a quick fix but it isn't appropriate for a full build:
We can have the host generate the make prime list object file and
binary using the host gcc prior to running make:
=======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=============
What do you guys think?
Sincerely,
William Harrington
_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org