tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xentools41 LDFLAGS Re: broken packages for 2012Q3



On 10/15/2012 10:34, Aaron J. Grier wrote:
 maybe something else in the pkgsrc machinery could
clean that up?  (rewriting RPATH entries in the elf files if they
contain .destdir paths?)

You mean rewriting the RPATH on a produced ELF binary?
That's not practically possible.
1) The binary has to be built "unoptimized" to ensure the rpath string suffix isn't used by another symbol.
2) The new RPATH has to be shorter or the same length as the old RPATH
3) You need a tool to rewrite RPATHS - is far as I know Solaris and maybe Linux are the only ones that have it, and Solaris required a change in their linker (Solaris has an addition 200 characters than can be used for longer RPATH than original and needs a special symbol to track how many are left)

None of the BSDs as far as I know have the ability to rewrite RPATH in a guaranteed way although I have been trying to figure out the best way to modify gold linker to support rewriting RPATHS with longer versions for DragonFly.

John


Home | Main Index | Thread Index | Old Index