This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
non_shared compilation with 2.95.1 on irix 6.3
- To: help-gcc at gnu dot org
- Subject: non_shared compilation with 2.95.1 on irix 6.3
- From: Martin Larose <larosem at mansarde dot IRO dot UMontreal dot CA>
- Date: Mon, 29 Nov 1999 23:47:55 GMT
- Newsgroups: gnu.gcc.help
- Reply-To: larosem at iro dot umontreal dot ca
- Xref: wodc7nx0 gnu.gcc.help:2007
Hi,
I am working on a SGI O2 and I want to compile some C++ code in non_shared
mode. I installed gcc 2.95.1 without (apparent) problem, gcc uses the mips
assembler and linker. I compiled some code in shared mode; it worked ok.
Now I want to compile this code in non_shared mode. I have gone into much
problems:
o when I pass the -static option at link time, the linker complains about
the crtbegin.o file "ld: FATAL 43: cannot mix PIC and non-PIC: /soft/lbit/irix/lib/gcc-lib/mips-sgi-irix6.3/2.95.1/crtbegin.o";
o for testing purpuses, I removed this filename from the link command: the
next file had the same comment. I concluded that the assembly went
wrong;
o I added the flag -static -Wa,-non_shared on compilation of my first test
file and linked again without crtbegin.o: the second file was rejected
for the same reason.
Do I have to modify the specs file and recompile gcc and libraries or did I
missed something???
Thank you.
--
Martin Larose mailto:larosem@iro.umontreal.ca
http://www.iro.umontreal.ca/~larosem
This mail message sent by GNU emacs, Gnus and Linux.
Food, Shelter, Source code.