bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems using relocatable on Win32


From: Reuben Thomas
Subject: Re: Problems using relocatable on Win32
Date: Mon, 11 Dec 2017 10:32:24 +0000

On 10 December 2017 at 12:33, Bruno Haible <address@hidden> 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 computed by libtool, and I can't see a better way than
> effectively recomputing it, that is, use bindir when the platform is
> cygwin, mingw or cegcc, and libdir otherwise.

Correct. You need to define it by yourself. An Automake conditional
based on "$host_os" will do the trick.

AM_CONDITIONAL([SHLIBS_IN_BINDIR], [case "$host_os" in mingw* | cygwin*) true;; *) false;; esac])

if SHLIBS_IN_BINDIR
AM_CPPFLAGS += -DINSTALLDIR=\"$(bindir)\"
else
AM_CPPFLAGS += -DINSTALLDIR=\"$(libdir)\"
endif

​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.

--

Attachment: 0001-Use-better-texinfo-tags-in-a-few-cases.patch
Description: Text Data

Attachment: 0002-doc-Improve-explanation-of-supporting-relocatable-li.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]