This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problems building shared libraries under Irix6
- To: egcs at cygnus dot com
- Subject: Problems building shared libraries under Irix6
- From: Lee Iverson <leei at ai dot sri dot com>
- Date: Tue, 16 Dec 1997 09:24:27 -0800
- Reply-To: egcs at cygnus dot com
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