This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: patch - add GNU/kFreeBSD support into shlibpath.m4
- From: Petr Salinger <Petr dot Salinger at t-systems dot cz>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, <java-patches at gcc dot gnu dot org>
- Date: Wed, 24 May 2006 10:01:54 +0200 (CEST)
- Subject: Re: patch - add GNU/kFreeBSD support into shlibpath.m4
On 23 May 2006, Tom Tromey wrote:
> >>>>> "Petr" == Petr Salinger <Petr.Salinger@t-systems.cz> writes:
>
> Petr> would be possible to include GNU/kFreeBSD support into shlibpath.m4.
> Petr> This change together with slightly modified boehm-gc gives reasonable
> Petr> results, see http://gcc.gnu.org/ml/java/2006-05/msg00093.html.
>
> We try to avoid local modifications to files like this.
> It came from libtool, as I recall. Could you see if the problem is
> fixed upstream? If so, we could import and "upstream-looking" patch.
> If not, the patch should probably go there first.
I see.
AC_LIBTOOL_SYS_DYNAMIC_LINKER is also defined in libjava/libltdl/acinclude.m4.
In this file, there already is case:
kfreebsd*-gnu)
version_type=linux
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext
soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
dynamic_linker='GNU ld.so'
;;
I would be happy with importing this chunk into libjava/shlibpath.m4
The previously proposed patch should be consistent with future libtool,
see http://www.mail-archive.com/libtool-patches@gnu.org/msg02318.html
Both approaches are sufficient for gcj on GNU/kFreeBSD.
Thanks
Petr