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

Reply via email to