This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add helper script for glibc debugging


On Sep 24 2019, "Gabriel F. T. Gomes" <gabriel@inconstante.net.br> wrote:

> Maybe there are more trivial ways to do it, but that's what I have been
> using for some time.

The easiest way is to configure with --enable-hardcoded-path-in-tests or
setting build-hardcoded-path-in-tests, though that only works for test
programs.  If you need to debug one of the included programs there needs
to be a way to inject
`-Wl,-dynamic-linker=$(elf-objpfx)$(rtld-installed-name)
-Wl,-rpath=$(rpath-link)$(patsubst %,:%,$(sysdep-library-path))' into
the link command (setting config-LDFLAGS used to accomplish this, but
that variable no longer exists).

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]