This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17219] -static and -statig-libgcc aren't doing what they should.
- From: "gonnetp at inf dot ethz dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Sep 2004 20:07:15 -0000
- Subject: [Bug target/17219] -static and -statig-libgcc aren't doing what they should.
- References: <20040828001516.17219.gonnetp@inf.ethz.ch>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gonnetp at inf dot ethz dot ch 2004-09-02 20:07 -------
Subject: Re: -static and -statig-libgcc aren't doing what
they should.
On 1 Sep 2004, wilson at specifixinc dot com wrote:
> For irix6, we can presumably make -static work by modifying various
> specs rules to emit appropriate irix compiler/assembler/linker options.
> If you are asking me specifically whether this is possible, then I
> can't answer that, as I don't have access to an irix6 box. If you are
> asking me theoretically whether this is possible, then I am answering yes.
Looking forward to seeing thins fixed :)
> However, I think most of the debate is moot, as it isn't advisable to do
> static linking on irix6 anyways. I don't remember all the details why,
> but I think part of the problem is that they have multiple versions of
> libc/libm, and if you static link, you may end up with code that won't
> run on all machines. They maybe are also doing the glibc trick of using
> dlopen to load alternative libraries at runtime, which does not work if
> you link statically.
The multiple versions I have here are 64 and 32 bit versions, so whatever
I link at compile time will be the right one. The problem is that I have
to deploy a stand-alone application on a bunch of irix boxes that don't
have a gcc > 3.0 installed...
> If this is all too complicated, then just say "-static isn't supported
> for Irix6" and close the bug report. I think this is a reasonable
> enough answer.
Please don't do that...
Cheers and thanks
Pedro
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17219