On Wed, Oct 12, 2005 at 02:18:28PM +0200, Ralf Wildenhues wrote: > Since on Solaris we sometimes use `$CC' for linking though (CVS HEAD > uses $CC instead of $LD in this case), this is not sufficient. AFAICS > the linker driver fails when all he gets is `-Wl,..' args: > > $ cc -G -h libfoo.so.0 -o .libs/libfoo.so -Wl,-z > -Wl,allextract,.libs/libconv.a -Wl,-z -Wl,defaultextract -ldl -laio -lm -lnsl > -lsocket -lc -xarch=v9 -mt > usage: cc [ options] files. Use 'cc -flags' for details > > One workaround for the user would be to add a dummy object to the link > line. > > I haven't found a good way to persuade the compiler driver to invoke the > linker anyway yet.. does anybody have a better idea than going back to > linking with $LD (maybe only in the 64bit case)? Any suggestions?
Infer from -xarch=v9? I really don't want to go back to linking with $LD (and, what happens for C++ where you must link with $CC?). -- albert chin ([EMAIL PROTECTED])
