bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* Using relocatable-prog with relocatable libraries
@ 2021-04-05 21:55 Reuben Thomas
  2021-04-05 22:36 ` Reuben Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Reuben Thomas @ 2021-04-05 21:55 UTC (permalink / raw)
  To: bug-gnulib

[-- Attachment #1: Type: text/plain, Size: 921 bytes --]

I use relocatable-prog in a project which builds a binary that links
against a library which itself is installed publicly.

Therefore, I build gnulib with -DIN_LIBRARY.

This causes gnulib to be built with a static copy of compute_curr_prefix,
named local_compute_curr_prefix. Therefore, when linking, the call to
compute_curr_prefix in progreloc.c's prepare_relocate function does not
find a link target, and linking fails.

I read through the documentation (mostly relocatable-maint.texi), and
couldn't find anything that seemed to relate to this. I can't see how I can
build gnulib both with and without -DIN_LIBRARY (unless of course I build
two copies of gnulib).

Have I missed something? I was surprised that I hadn't come across this
problem before, but I found that I've used relocatable-lib-lgpl before, but
not relocatable-prog (because in fact I was working with an LGPLed project).

-- 
https://rrt.sc3d.org

[-- Attachment #2: Type: text/html, Size: 2026 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-09 20:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05 21:55 Using relocatable-prog with relocatable libraries Reuben Thomas
2021-04-05 22:36 ` Reuben Thomas
2021-04-05 22:42   ` Reuben Thomas
2021-04-09  1:41     ` Ben Pfaff
2021-04-09 10:18       ` Reuben Thomas
2021-04-09 20:17         ` Reuben Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).