This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]