This is the mail archive of the gcc-help@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]

non_shared compilation with 2.95.1 on irix 6.3


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.


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