[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Patch for dbootstrap make test targets



Hi people,

I've been arguing with boot-floppies for arm, trying to build arm boot
floppies. Just the usual agravation on the whole :-) But I found something
that seems to be broken: (using bf from cvs about a week ago)

If, in utilities/dbootstrap, you do 
make choose_config_test (on i386 or arm) the compile fails to link at the
end, due to all the newt symbols being missing.

I scratched my head for a bit and worked out that, (unless I am missing
something obscure) the Makefile needs this change to make sure the newt and
slang libraries are referenced on the linker line (adding LIBS_NLC): 

--- Makefile.orig	Wed Nov 22 11:41:09 2000
+++ Makefile	Wed Nov 22 11:33:41 2000
@@ -223,7 +223,7 @@
 $(_all_tests) %.test.o :          LDFLAGS =
 
 $(_TESTS) $(PROG)_test : _obj  = $(OBJECTS)
-$(_TESTS) $(PROG)_test : _LIBS = $(LIBS)
+$(_TESTS) $(PROG)_test : _LIBS = $(LIBS) $(LIBS_NLC)
 $(_TESTS) $(PROG)_test : $(_LIBFDISK)
 $(_TESTS) : %_test     : .translated/%.c $(OBJECTS) test.trm

There is also a similar $(_TESTS_G) set of lines below that probably need the
same change.

Hope this is useful. If this isn't the right way to fix it then could someone
explain what's going on?

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel (00 44) 1223 811679
work: http://www.aleph1.co.uk/     play: http://www.chaos.org.uk/~wookey/



Reply to: