Hi all,
the attached patch fixes two libtool warnings. It does not make sense to
use versioning information for convenience libraries, so I've added a
new substitution for LDFLAGS for convenience libraries.
cheers,
dalibor topic
2006-04-15 Dalibor Topic <[EMAIL PROTECTED]>
* configure.ac:
Added CLASSPATH_CONVENIENCE substitution for convenience library
LDFLAGS.
* native/fdlibm/Makefile.am,
native/jni/classpath/Makefile.am:
Don't use -module and -version-info for convenience libraries
LDFLAGS.
Fixes libtool warnings.
Index: configure.ac
===================================================================
RCS file: /sources/classpath/classpath/configure.ac,v
retrieving revision 1.143
diff -u -r1.143 configure.ac
--- configure.ac 16 Apr 2006 21:54:09 -0000 1.143
+++ configure.ac 17 Apr 2006 10:17:02 -0000
@@ -33,6 +33,9 @@
CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
AC_SUBST(CLASSPATH_MODULE)
+CLASSPATH_CONVENIENCE="-no-undefined"
+AC_SUBST(CLASSPATH_CONVENIENCE)
+
AC_PREREQ(2.59)
AM_INIT_AUTOMAKE([1.9.0 gnu std-options tar-ustar])
AC_CONFIG_HEADERS([include/config.h])
Index: native/fdlibm/Makefile.am
===================================================================
RCS file: /sources/classpath/classpath/native/fdlibm/Makefile.am,v
retrieving revision 1.11
diff -u -r1.11 Makefile.am
--- native/fdlibm/Makefile.am 23 Feb 2006 16:16:20 -0000 1.11
+++ native/fdlibm/Makefile.am 17 Apr 2006 10:17:07 -0000
@@ -58,7 +58,7 @@
w_sqrt.c \
namespace.h
-AM_LDFLAGS = @CLASSPATH_MODULE@
+AM_LDFLAGS = @CLASSPATH_CONVENIENCE@
# We just want the standard flags for fdlibm since it is an upstream lib
# and our normal -pedantic -Wall -Werror breaks this lib. So no AM_CFLAGS.
Index: native/jni/classpath/Makefile.am
===================================================================
RCS file: /sources/classpath/classpath/native/jni/classpath/Makefile.am,v
retrieving revision 1.8
diff -u -r1.8 Makefile.am
--- native/jni/classpath/Makefile.am 25 Jan 2006 10:40:12 -0000 1.8
+++ native/jni/classpath/Makefile.am 17 Apr 2006 10:17:07 -0000
@@ -7,6 +7,6 @@
jnilink.c jnilink.h \
native_state.c native_state.h
-AM_LDFLAGS = @CLASSPATH_MODULE@
+AM_LDFLAGS = @CLASSPATH_CONVENIENCE@
AM_CPPFLAGS = @CLASSPATH_INCLUDES@
AM_CFLAGS = @WARNING_CFLAGS@ @STRICT_WARNING_CFLAGS@ @ERROR_CFLAGS@