Andre Lue wrote:
> phigamma,
>
> Took a bit of your advice and having a go with binutils. However I cannot
> compile ffmepg svn 18335 with the new ld from bintutils. Can you please have
> alook and tell if you can where this is oging wrong. I'm using
> /tmp/gcc/bin/ld but cannot figure out where or why it calls /usr/ccs/bin/ld
> when linking libavdevice and crashes.
>
> binutils buitl with:
> pre=/tmp/gcc
> export CC=/opt/SUNWspro/bin/cc
> ./configure --prefix=${pre}
>
> ffmpeg built using:
> export CC=/opt/sfw/bin/gcc
> export CXX=/opt/sfw/bin/g++
>
Correct me if I'm wrong here, but if you're using sfw and just changing
the prefix you'll need to recompile gcc to use your temp binutils ld..
However, I've built mplayer, vlc and many other things and the linker is
not the problem. While others here may advise to use binutils I
strongly recommend against it for reasons likes..
1) If you want to help compiler onnv-gate with your version of gcc. gnu
ld is missing features
2) many of the gnu toolchain tools aren't very well tested on solaris
(gcc, binutils.. etc) so in my experience you're much more likely to hit
regressions
3) A couple quick ones that I can think of.. -Wl,-i , secure libs and
various other features that are important are missing
In fairness I didn't look at the binutils manual so well, but it's like
choosing a poorly support tool over a tool tested and used by the core
system.. If you need mplayer and this is the root to the problem email
me off list.
(shrugs)
./C