This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems building shared libraries under Irix6



All of the discussion wrt. __register_frame under Linux (mostly on
gcc2 with spillover here) begs an important question: why is libgcc.a
linked in when building shared libraries?  Under Irix 6.x, this
inclusion on the link line seems to break shared libraries
completely.  They can no longer be linked against since
__register_frame was included.

If libgcc was a properly versioned shared library, however, things
might actually work.  For now, I'm experimenting with adding the
following lines to specs (note the conditionalization of %G on shared):

*link_command:
%{!fsyntax-only: %{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %D %o %{!nostdlib:%{!nodefaultlibs: %{!shared: %G} %L %{!shared: %G}}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}

At least now I don't get error messages at shared library link time.

-------------------------------------------------------------------------------
Lee Iverson     		SRI International
leei@ai.sri.com			333 Ravenswood Ave., Menlo Park CA 94025
http://www.ai.sri.com/~leei/	(650) 859-3307


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]