prog_LDFLAGS takes precedence over AM_LDFLAGS in libtool. However, in our GMP build, we have orthogonal definitions of both these variables. Strangely, this works with older versions of libtool (e.g. the one in Debian stable) because it seems to lack prog_LINK. This fixes the bug so gmp works on all versions of libtool.
ChangeLog: 2008-03-10 Andrew John Hughes <[EMAIL PROTECTED]> PR classpath/28664 * native/jni/java-math/Makefile.am: Add AM_LDFLAGS to the local LDFLAGS definition so gmp is linked. -- Andrew :) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint = F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
Index: native/jni/java-math/Makefile.am =================================================================== RCS file: /sources/classpath/classpath/native/jni/java-math/Makefile.am,v retrieving revision 1.1 diff -u -3 -p -u -r1.1 Makefile.am --- native/jni/java-math/Makefile.am 28 Feb 2008 22:44:23 -0000 1.1 +++ native/jni/java-math/Makefile.am 10 Mar 2008 22:51:12 -0000 @@ -4,7 +4,7 @@ libjavamath_la_SOURCES = java_math_VMBig libjavamath_la_LIBADD = $(top_builddir)/native/jni/classpath/jcl.lo -libjavamath_la_LDFLAGS = -avoid-version +libjavamath_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version AM_LDFLAGS = @CLASSPATH_MODULE@ @GMP_LIBS@ AM_CPPFLAGS = @CLASSPATH_INCLUDES@
signature.asc
Description: Digital signature