[kaffe] build fixlet
Tom Tromey
tromey at redhat.com
Sun May 1 13:02:28 PDT 2005
I needed this to build srcdir!=builddir with gcjx.
No Makefile.in patch as I don't have the right version of automake; I
just hacked the Makefile directly :-/
Tom
Index: ChangeLog
from Tom Tromey <tromey at redhat.com>
* libraries/javalib/gmp-math/Makefile.am (Klasses_jar): Include
srcdir; search for rt.jar in builddir.
(compile-classes $(LIBDIR)/stamp classes): Pass LIBDIR to
rebuildLib.
Index: libraries/javalib/gmp-math/Makefile.am
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/javalib/gmp-math/Makefile.am,v
retrieving revision 1.4
diff -u -r1.4 Makefile.am
--- libraries/javalib/gmp-math/Makefile.am 11 Feb 2005 04:56:58 -0000 1.4
+++ libraries/javalib/gmp-math/Makefile.am 1 May 2005 20:08:11 -0000
@@ -1,7 +1,7 @@
#
# Kaffe GNU MP-based BigInteger and BigDecimal implementation.
#
-# Copyright (c) 2004
+# Copyright (c) 2004, 2005
# Kaffe.org contributors. All rights reserved. See ChangeLog for details.
#
# See the file "license.terms" for information on usage and redistribution
@@ -35,7 +35,7 @@
cd $(srcdir) && $(SHELL) $(top_srcdir)/developers/update-class-list
rebuildLib = $(top_builddir)/libraries/javalib/rebuildLib
-Klasses_jar = $(top_srcdir)/libraries/javalib/rt.jar
+Klasses_jar = $(srcdir):$(top_builddir)/libraries/javalib/rt.jar
.PHONY: compile-classes classes
## classes is provided for backward compatibility; use compile-classes
@@ -43,7 +43,7 @@
rm -rf $(LIBDIR)
mkdir $(LIBDIR)
echo $(SHELL) $(rebuildLib)
- CLASSPATH=$(Klasses_jar) $(SHELL) $(rebuildLib) $(gmpjavamath_jar_SRCS)
+ LIBDIR=$(LIBDIR) CLASSPATH=$(Klasses_jar) $(SHELL) $(rebuildLib) $(gmpjavamath_jar_SRCS)
echo timestamp > $(LIBDIR)/stamp
.PHONY: jar-classes
More information about the kaffe
mailing list