This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Fix libjawt install
>>>>> "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