This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
fix for bug 2969
- From: Yao Qi <qiyaoltc at cn dot ibm dot com>
- To: frysk <frysk at sourceware dot org>
- Cc: rmoseley at redhat dot com
- Date: Mon, 31 Jul 2006 13:43:41 +0800
- Subject: fix for bug 2969
libunwind is not supported on ppc/ppc64, so libuwind and its java
bindings could be skipped when build frysk on ppc/ppc64.
2006-07-31 Yao Qi <qiyaoltc@cn.ibm.com>
* frysk-imports/bootstrap.sh: Build libunwind if it is supported.
Run bootstrap.sh on X86 and PPC64 to verify its output(Makefile.gen),
and libunwind and its java bindings are only built on X86.
OK to apply? Thanks.
--
Yao Qi
Index: frysk-imports/bootstrap.sh
===================================================================
RCS file: /cvs/frysk/frysk-imports/bootstrap.sh,v
retrieving revision 1.8
diff -u -r1.8 bootstrap.sh
--- frysk-imports/bootstrap.sh 13 Jul 2006 11:13:12 -0000 1.8
+++ frysk-imports/bootstrap.sh 31 Jul 2006 05:31:14 -0000
@@ -38,8 +38,7 @@
# version and license this file solely under the GPL without
# exception.
-./common/Makefile.gen.sh \
- frysk \
+FILE_LIST="frysk \
inua \
junit/junit.jar \
ANTLR_JAR \
@@ -47,8 +46,31 @@
JDOM_JAR \
jline/jline.jar \
jargs/jargs.jar \
- lib
-
+ lib/dw \
+ lib/elf \
+ lib/opcodes "
+
+target_cpu=`uname -a`
+
+case "${target_cpu}" in
+ *86*)
+ # libunwind is supported on X86 and X86_64 now, so buildlibunwind
+ # java binding. When libunwind is supported on PPC/PPC64, libuwind
+ # and its java bindings could be built unconditionally.
+ FILE_LIST+=lib/unwind
+ # Now run a separate aclocal/autoconf/automake for libunwind
+ cd libunwind
+ echo "Running aclocal ... for libunwind"
+ aclocal
+ echo "Running autoconf ... for libunwind"
+ autoconf -f
+ echo "Running autoheader ... for libunwind"
+ autoheader
+ cd ..
+ ;;
+esac
+
+./common/Makefile.gen.sh $FILE_LIST
# Generate everything (always run with --add-missing).
@@ -76,17 +98,3 @@
autoconf -f
cd ..
-target_cpu=`uname -a`
-
-case "${target_cpu}" in
- *86*)
- # Now run a separate aclocal/autoconf/automake for libunwind
- cd libunwind
- echo "Running aclocal ... for libunwind"
- aclocal
- echo "Running autoconf ... for libunwind"
- autoconf -f
- echo "Running autoheader ... for libunwind"
- autoheader
- ;;
-esac