This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
IRIX vs. -static
- To: gcc at gcc dot gnu dot org
- Subject: IRIX vs. -static
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 29 Oct 2000 16:34:47 -0800
- Organization: CodeSourcery, LLC
The `gcc -static' flag doesn't work on IRIX 6.5. There are two
reasons:
- We try to link against some non-existant objects in
/usr/lib32/nonshared. There's no such beasty.
- We pass -non_shared to the linker, but that really doesn't work.
IRIX just isn't into non-shared objects. For example, there's
no crt1.o on the system that is non-PIC, which is what
-non_shared means to IRIX ld.
The documentation for GCC -static says:
On systems that support dynamic linking, this prevents linking
with the shared libraries. On other systems, this option has no
effect.
I think we should either make this have no effect on IRIX, or make it
use -Bstatic to try to find archives, rather than libraries, but not
use -non_shared, since that just doesn't work. Thoughts?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com