Fix building Ogg/Theora on Solaris
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I'd like to suggest a patch to be able to easily compile ParaView 3.8.0 RC1 on SPARC Solaris (SunOS 5.10, using self-compiled GCC 4.3.4 64bit) with Ogg/Theora support enabled (-DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON). Currently, that fails with
/usr/ccs/bin/ld: illegal option -- version-script=/data/PV3.8.0RC1/VTK/Utilities/vtkoggtheora/vtkoggtheora.vscript usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s) [-64] enforce a 64-bit link-edit [-a] create an absolute file [-b] do not do special PIC relocations in a.out [-B direct | nodirect] establish direct bindings, or inhibit direct binding to, the object being created [-B dynamic | static] search for shared libraries|archives [-B eliminate] eliminate unqualified global symbols from the symbol table [...]
According to the ld man page, the option --version-script is only meaningful on ELF platforms anyway, no wonder Solaris ld bails out.
With kind regards, Sven