On 27-11-2006 19:17:16 +0100, Michael Haubenwallner wrote: > Hi, > > tried a different way with exciting success:
exciting is an UNDERstatement! > Attached sys-devel/binutils-2.16.1-r3.ebuild creates a wrapper script > around the real linker, which always appends to ld-commandline: > -rpath=$EPREFIX/lib:$EPREFIX/usr/lib Maybe we should also include the /usr/lib/CHOST/gcc/VER/ stuff in there? > So I can remove setting LD_RUN_PATH and LDFLAGS completely from > sunos/profile.bashrc, going around any "whether need -Wl," and "LDFLAGS > are not passed to linker" issues. COOL!! > Have remerged system+vim+svn, and all binaries really have good > DT_RUNPATH encoded now :-) I guess this adds as "bonus" that "user" compilations now automagically (when they use the prefix linker/compiler) use the prefix stuff too, right? Ohw wait, no. Because GCC doesn't see the includes, or did we patch it such that it looks in our prefix too? > Thoughts ? Maybe it's less expensive (context switches, etc.) to implement this in the gcc wrapper script Gentoo already uses? Then we could also set -Lpath next to -rpath=path. -- Fabian Groffen Gentoo on a different level -- [EMAIL PROTECTED] mailing list
