changeset in /hg/icedtea6: 2008-12-08 Gary Benson <gbenson at red...
Gary Benson
gbenson at redhat.com
Mon Dec 8 03:33:45 PST 2008
changeset e80c09b99b46 in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=e80c09b99b46
description:
2008-12-08 Gary Benson <gbenson at redhat.com>
* contrib/jck/compile-native-code.sh: New file.
diffstat:
2 files changed, 68 insertions(+)
ChangeLog | 4 ++
contrib/jck/compile-native-code.sh | 64 ++++++++++++++++++++++++++++++++++++
diffs (79 lines):
diff -r cb878729b4ff -r e80c09b99b46 ChangeLog
--- a/ChangeLog Sun Dec 07 21:04:26 2008 +0100
+++ b/ChangeLog Mon Dec 08 11:33:38 2008 +0000
@@ -1,3 +1,7 @@ 2008-12-07 Matthias Klose <doko at ubuntu
+2008-12-08 Gary Benson <gbenson at redhat.com>
+
+ * contrib/jck/compile-native-code.sh: New file.
+
2008-12-07 Matthias Klose <doko at ubuntu.com>
* patches/icedtea-uname.patch: Update for PARISC.
diff -r cb878729b4ff -r e80c09b99b46 contrib/jck/compile-native-code.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/jck/compile-native-code.sh Mon Dec 08 11:33:38 2008 +0000
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+if [ $# != 1 ]; then
+ echo 1>&2 "usage: `basename $0` JCKDIR"
+ exit 1
+fi
+
+JCKDIR=$(cd $1 && pwd)
+if [ ! -f $JCKDIR/src/share/lib/atr/jckatr.c ]; then
+ echo 1>&2 "error: $JCKDIR is not a runtime JCK"
+ exit 1
+fi
+
+basedir=$(dirname $JCKDIR)
+if [ -z $basedir ]; then
+ echo 1>&2 "error: don't let me delete /lib"\!
+ exit 1
+fi
+
+LIBDIR=$basedir/lib
+RESDIR=$basedir/resources
+
+for dir in $LIBDIR $RESDIR; do
+ rm -Rf $dir
+ mkdir -p $dir
+done
+
+set -x
+cp -r $JCKDIR/tests/api/javax_management/loading/data/* $RESDIR
+chmod -R +w $RESDIR
+
+gcc -fPIC -shared -o $LIBDIR/libjckatr.so -I$JCKDIR \
+ $JCKDIR/src/share/lib/atr/jckatr.c
+
+gcc -fPIC -shared -o $LIBDIR/libjckjni.so -I$JCKDIR \
+ -I$JCKDIR/src/share/lib/jni/include \
+ -I$JCKDIR/src/share/lib/jni/include/solaris \
+ $JCKDIR/src/share/lib/jni/jckjni.c
+
+gcc -fPIC -shared -o $LIBDIR/libjckjvmti.so -I$JCKDIR \
+ -I$JCKDIR/src/share/lib/jvmti/include \
+ -I$JCKDIR/src/share/lib/jni/include \
+ -I$JCKDIR/src/share/lib/jni/include/solaris \
+ $JCKDIR/src/share/lib/jvmti/jckjvmti.c
+
+gcc -fPIC -shared -o $LIBDIR/libsystemInfo.so \
+ -I$JCKDIR/src/share/lib/jni/include \
+ -I$JCKDIR/src/share/lib/jni/include/solaris \
+ $JCKDIR/tests/api/javax_management/loading/data/archives/src/C/com_sun_management_mbeans_loading_SystemInfoUseNativeLib.c
+
+gcc -fPIC -shared -o $LIBDIR/libjmxlibid.so \
+ -I$JCKDIR/src/share/lib/jni/include \
+ -I$JCKDIR/src/share/lib/jni/include/solaris \
+ $JCKDIR/tests/api/javax_management/loading/data/archives/src/C/com_sun_management_mbeans_loading_GetLibIdFromNativeLib.c
+
+gcc -fPIC -shared -o $LIBDIR/libgenrandom.so \
+ -I$JCKDIR/src/share/lib/jni/include \
+ -I$JCKDIR/src/share/lib/jni/include/solaris \
+ $JCKDIR/tests/api/javax_management/loading/data/archives/src/C/com_sun_management_mbeans_loading_RandomGen.c
+
+jar uf $RESDIR/archives/MBeanUseNativeLib.jar $LIBDIR/libsystemInfo.so
+rm -f $LIBDIR/libsystemInfo.so
+jar cf $RESDIR/archives/OnlyLibs.jar $LIBDIR/libjmxlibid.so
+rm -f $LIBDIR/libjmxlibid.so
More information about the distro-pkg-dev
mailing list