Thanks a LOT, dear Rod :)).
Thanks for your prompt reply and readiness to help.
So, yes, you´re right, the ./configure script used the Solaris ld after all.
However, using GNU ld proved to no avail, because it ¨cannot find -lXext¨ -- as
per google it is because libXext is handled differently in Solaris, than it is
in Linux.
OK, so I´ll have to use the native ld, and here´s where the ¨-ztext¨ comes from:
$cat configure | grep archive_cmds | grep text
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs
$linker_flags'
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o
$lib $libobjs $deplibs $compiler_flags'
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs
$linker_flags'
and therefore in the created ./libtool I also find these:
archive_cmds="\$CC -shared [b]\${wl}-z \${wl}text[/b] \${wl}-h \${wl}\$soname
-o \$lib \$libobjs \$deplibs \$compiler_flags"
\$CC -shared [b]\${wl}-z \${wl}text[/b] \${wl}-M \${wl}\$lib.exp
\${wl}-h \${wl}\$soname -o \$lib \$libobjs \$deplibs \$compiler_flags~\$RM
\$lib.exp"
So, I don´t know if I understood it all right, but I just cut the piece
¨\${wl}-z \${wl}text¨ from among the arguments in the ./libtool script and
reran `gmake` -- which then compiled OK.
Do I get it right? Unfortunately, I can´t yet try it, as xine-gui doesn´t want
to build either, and this time it isn´t linker (seems like C syntax error).
When I overcome this, I will report back about my results, whether or not I
finally succeed building xine-lib on OpenSolaris. That would be a GREAT thing!
--
This message posted from opensolaris.org
_______________________________________________
tools-linking mailing list
[email protected]