[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: havelib: Enhance documentation
From: |
Bruno Haible |
Subject: |
Re: havelib: Enhance documentation |
Date: |
Mon, 11 May 2020 10:08:46 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; ) |
Hi José,
> +If you, by mistake, use @code{LIB<@var{NAME}>} instead of
> +@code{LTLIB<@var{NAME}>} when linking with libtool, you will observe
> that the
> +binaries created in the build dir will prefer the shared libraries in the
> +installation directories over the shared libraries in the build dir;
> this can
> +lead to all sorts of build failures, test failures, or crashes!
>
> It would be more correct to refer to the "wrapper scripts created in the
> build dir".
Well, the 'readelf' command from [1] showed that the BUILD_DIR/.libs/lt-PROGRAM
executable had a wrong rpath. Whether libtool creates this binary directly or
through the intermediary of a wrapper script and a relink_command, is irrelevant
for the purpose of this piece of documentation.
Bruno
[1] https://lists.gnu.org/archive/html/poke-devel/2020-05/msg00132.html