Set RUNPATH for simulavr binary (so it can find libbfd).
authorW. Trevor King <wking@tremily.us>
Tue, 14 Aug 2012 02:27:30 +0000 (22:27 -0400)
committerW. Trevor King <wking@tremily.us>
Tue, 14 Aug 2012 12:49:22 +0000 (08:49 -0400)
commit953d8439f02c0b6168107055f35e60192468291a
treed9e527dd4727dcaa348d56c4968742d6bdc8675d
parent4aca87b5f9ec40ce0d672a9fade35969e9a03175
Set RUNPATH for simulavr binary (so it can find libbfd).

With --enable-new-dtags, ld sets both RUNPATH and RPATH instead of
just RPATH.  On Gentoo, this has been the default since 2005 [1], but
explicit is better than implicit [2].

  $ readelf -d .../usr/bin/simulavr | grep PATH
   0x000000000000000f (RPATH)    Library rpath: [/usr/lib/binutils/avr/git]
   0x000000000000001d (RUNPATH)  Library runpath: [/usr/lib/binutils/avr/git]

From ld(1):

  The "DT_RPATH" entries are ignored if "DT_RUNPATH" entries exist.

So the fact that there is a RPATH entry doesn't matter.

[1]: http://comments.gmane.org/gmane.comp.gnu.binutils/57379
[2]: http://www.python.org/dev/peps/pep-0020/
Manifest
simulavr-9999.ebuild