Advice on rpath

Hans de Goede j.w.r.degoede at hhs.nl
Thu Oct 12 14:04:00 UTC 2006


Linus Walleij wrote:
> On Wed, 11 Oct 2006, Patrice Dumas wrote:
> 
>> It seems to be allready packaged (chrpath-0.13-1.1.fc6).
> 
> OK then problem solved; when %configure --disable-rpath doesn't do it, 
> add BR chrpath and kick it out with brute force chrpath --delete foo on 
> the culprit.
> 

Why, all that is need is adding the following 2 lines to the spec after %configure, leading to:
%configure
# Don't use rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

Now that may not be pretty but IMHO it sure beats doing binary editing after building the binary.

Regards,

Hans





More information about the fedora-extras-list mailing list