[PATCH] Fix libjawt install

Tom Tromey tromey@redhat.com
Thu Mar 17 17:10:00 GMT 2005


>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:

Alexandre> Referencing .libs explicitly is *never* correct, since
Alexandre> there are boxes on which libtool uses _libs instead of
Alexandre> .libs.

FWIW we've had code doing this in the tree for quite a while.  Jakub's
patch doesn't make the situation any worse.

As I recall (and according to the comment in Makefile.am, which is
appended), we had to do this due to having '-lgcj' in libgcj.spec.
Not using _libs hasn't caused problems that I've heard of, but I agree
it is a bug.

Tom

## We don't explicitly link in the libraries we need; libgcj.la brings
## in all dependencies.  We need the -L so that gcj can find libgcj
## with `-lgcj', but it must come first, otherwise the -L flags
## brought in from libgcj.la would cause the install directories to be
## searched before the build-tree ones, and we'd get errors because of
## different libraries with the same SONAME from picky linkers such as
## Solaris'.  FIXME: should be _libs on some systems.
jv_convert_LDADD = -L$(here)/.libs libgcj.la



More information about the Java-patches mailing list