This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc on solaris


On 03.10.11 09:09, Maciej (Matchek) BliziÅski wrote:

The SFW version of GCC has a special patch which makes it add the -R
flag by default.  Unless you add that a patch, GCC will not add
anything to RPATH on its own.


True. So I patched the specfile of gcc instead (as found in the link you gave me) - that worked perfectly! :-)


spec_string="%{m64:-R ${PREFIX}/lib/amd64 %D}%{!m64:-R ${PREFIX}/lib %D}"
${PREFIX}/bin/gcc -dumpspecs | sed -e "/%D/d" | awk '{print} /*link_libgcc:/{print "'"${spec_string}"'"}' > ${OBJDIR}/specs
SPECFILE=`dirname $(${PREFIX}/bin/gcc -print-libgcc-file-name)`/specs
cp ${OBJDIR}/specs ${SPECFILE}


Not sure how that works out on sparc(64).

--
chs



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]