Re: ANN: NetworkManager (0.9.10-rc1) released

On Thu, 2014-06-26 at 18:40 +0200, Vincent Bernat wrote:
 ❦ 26 juin 2014 11:26 -0500, Dan Williams <dcbw redhat com> :

GNU linker will try to resolve dependencies recursively but more modern
linkers like the Gold linker doesn't. GNU linker may be told not to do
that with -Wl,--no-add-needed. Reading the documentation, I see that
--no-add-needed is now --no-copy-dt-needed-entries and I am a bit lazy
to understand the explanation. Also read the --as-needed option:

Some distribution enforce those flags.

Yeah, I forgot about gold.  I guess this is why pkgconfig is great,
since then you don't have to do a crapload of guesswork yourself (or in
the m4).  So, I suppose we add the readline m4 thing, but unfortunately
we need to hack it up ourselves, because it doesn't define READLINE_LIBS
even though it did all the work to find them...

I am using this version:

Which is almost like the original except that I use READLINE_LIBS (which
is a copy of $ax_cv_lib_readline only if readline is detected) and I
check for more symbols to detect a non-broken libreadline (this works
with libedit too).

But yes, it would be far more convenient if libreadline would use
pkg-config. Dunno why they don't.

Hah, I'd just done the attached patch... would that work, or do you
think it should be improved?


Attachment: 0001-build-check-harder-for-readline.patch
Description: Text Data

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