Re: Problems using relocatable on Win32

2017-12-11 Thread Bruno Haible
Hi Reuben, > > ​Thanks for this, which I have incorporated into a patch for the > > relocatable documentation, attached, along with a minor patch to use better > > tags in a couple of cases in gnulib.texi. > > > > ​I noticed that of course the AM_CONDITIONAL goes in configure.ac, so > updated

Re: Problems using relocatable on Win32

2017-12-11 Thread Reuben Thomas
On 11 December 2017 at 10:32, Reuben Thomas wrote: > ​Thanks for this, which I have incorporated into a patch for the > relocatable documentation, attached, along with a minor patch to use better > tags in a couple of cases in gnulib.texi. > ​I noticed that of course the

Re: Problems using relocatable on Win32

2017-12-11 Thread Reuben Thomas
On 10 December 2017 at 12:33, Bruno Haible wrote: > Reuben Thomas wrote: > > For case 1, am I correct in thinking > > there is no variable that contains this directory, i.e. "the directory > > where shared libraries are installed"? As far as I can tell, this > > directory is

Re: Problems using relocatable on Win32

2017-12-11 Thread Reuben Thomas
On 10 December 2017 at 15:33, Bruno Haible wrote: > Hi Reuben, > > I wrote: > > The trick to use --makefile-name in order to add some tweaks is > > currently undocumented. It would deserve to be documented > > I've now added this documentation. > ​Thanks very much. I had

Re: Problems using relocatable on Win32

2017-12-10 Thread Bruno Haible
Hi Reuben, I wrote: > The trick to use --makefile-name in order to add some tweaks is > currently undocumented. It would deserve to be documented I've now added this documentation. Also a doc tweak: The opposite term for "library" is "program", not "binary". Libraries exist as source as a

Re: Problems using relocatable on Win32

2017-12-10 Thread Bruno Haible
Reuben Thomas wrote: > For case 1, am I correct in thinking > there is no variable that contains this directory, i.e. "the directory > where shared libraries are installed"? As far as I can tell, this > directory is computed by libtool, and I can't see a better way than > effectively recomputing

Re: Problems using relocatable on Win32

2017-12-10 Thread Reuben Thomas
On 10 December 2017 at 01:48, Bruno Haible wrote: > Hi Reuben, > > > > ​I have a relocatable library that depends on files in pkgdatadir.​ > > > > ​So, the shared library calls relocate. relocate tries to compute > > curr_prefix_better, using get_shared_library_fullname. This

Re: Problems using relocatable on Win32

2017-12-09 Thread Bruno Haible
Hi Reuben, > > ​I have a relocatable library that depends on files in pkgdatadir.​ > > ​So, the shared library calls relocate. relocate tries to compute > curr_prefix_better, using get_shared_library_fullname. This will have a > prefix of libdir (or bindir on Win32). This is why I am setting

Re: Problems using relocatable on Win32

2017-12-09 Thread Bruno Haible
Hi Reuben, > Thanks very much for the method. Presumably this is effectively missing > documentation? The recommendation to use 2 gnulib-tool invocations is documented in section "Using Gnulib for both a library and a binary" [1]. The trick to use --makefile-name in order to add some tweaks is

Re: Problems using relocatable on Win32

2017-12-09 Thread Reuben Thomas
On 9 December 2017 at 20:44, Reuben Thomas wrote: > ​I have a relocatable library that depends on files in pkgdatadir.​ > ​So, the shared library calls relocate. relocate tries to compute curr_prefix_better, using get_shared_library_fullname. This will have a prefix of libdir (or

Re: Problems using relocatable on Win32

2017-12-09 Thread Reuben Thomas
On 9 December 2017 at 19:59, Bruno Haible wrote: ​[snip] Thanks very much for the method. Presumably this is effectively missing documentation? (You haven't suggested that I'm doing something unexpected.)​ > > But there's a > > further problem: on Win32, DLLs are installed to

Re: Problems using relocatable on Win32

2017-12-09 Thread Bruno Haible
Hello Reuben, > 1. For use in a library, relocatable.c should be built with IN_LIBRARY > defined. The documentation (relocatable-maint.texi) says to add > -DIN_LIBRARY to the defines for the library which is being made > relocatable. Unfortunately, I wrote that documentation, and it appears to >

Problems using relocatable on Win32

2017-12-09 Thread Reuben Thomas
I recently had a bug report https://github.com/AbiWord/enchant/issues/172 for a use of relocatable-lib-lgpl on Win32 which had some problems. After investigation, there are a couple of ways in which either my understanding of how to use relocatable is deficient, or there's a bug in relocatable.