hi,
On PPC64, all applications are compiled into 32-bit mode by default if
the compiling option "-m64" isn't explicitly given, which means most
applications running on PPC64 are in 32-bit mode. So it's necessary for
64-bit frysk to debug 32-bit applications on PPC64.
Currently, funit(in frysk-core/frysk/pkglibexecdir/) should be build in
64-bit mode, since it is dependent on other 64-bit frysk libraries, such
as libfrysk-core.a. In order to build other test cases in 32-bit mode
without breaking the 64-bit funit, one rule in Makefile.am is added.
That is to say, we remove all existent test cases(64-bit) except funit,
and rebuild them in 32-bit mode. All these 32-bit test cases could be
run via TestRunner.
On X86_64, although applications are compiled in 64-bit mode by default,
it's also necessary to do bi-arch test. The modifications will be
useful to 64-bit frysk on X86_64.
Among the frysk's five main sub-directories, frysk-gtk, frsyk-gui,
frysk-import and frysk-sys needn't do the bi-arch tests for their less
arch-dependence. So no rules are added for them. If someone thinks it's
also necessary, we'd like to add rules for them.
Please review, and any comments are welcome!
Thanks!
2006-08-24 Yong Zheng <zhengyo@cn.ibm.com>
* frysk-core/Makefile.am: Add support for compiling 32bit
testcases.
Best regards
Yong Zheng
------------------------------------------------------------------------
Index: frysk-core/Makefile.am
===================================================================
RCS file: /cvs/frysk/frysk-core/Makefile.am,v
retrieving revision 1.61
diff -u -r1.61 Makefile.am
--- frysk-core/Makefile.am 17 Aug 2006 01:54:27 -0000 1.61
+++ frysk-core/Makefile.am 24 Aug 2006 07:24:18 -0000
@@ -120,3 +120,7 @@
.PHONY: installcheck-funit
installcheck-funit:
$(DESTDIR)$(pkglibexecdir)/funit
+
+64test32:
+ -rm -fr frysk/pkglibexecdir/funit-*
+ $(MAKE) $(pkglibexec_PROGRAMS) CC="gcc -m32" CCAS="gcc -m32"
CXX="g++ -m32"