Re: gcc on solaris

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

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux