|Subject:||Re: Problems using relocatable on Win32|
|Date:||Sun, 10 Dec 2017 08:31:26 +0000|
> > 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 INSTALLDIR
> to libdir (but need bindir on Win32).
Oh, I see. Yes, after reading the code I confirm your finding:
INSTALLDIR should be defined
1) for the code in the relocatable library (only needed if
ENABLE_COSTLY_RELOCATABLE is not defined to 0). Its value should
be a C string that contains (for a shared library) the installation directory
of the shared library; often this will be $(libdir) on Unix excluding Cygwin,
or $(bindir) on Windows or Cygwin.
2) for the code that makes use of the relocatable library, that is, that invokes
set_program_name. Its value should be a C string that contains the installation
directory of the program; often this will be $(bindir).
|[Prev in Thread]||Current Thread||[Next in Thread]|