> > mkdir objectdir;cd objectdir > > CC="cc -xildoff -xarch=v9" > > export CC > > Why are you choosing those flags?
Probably because they are advertised on: http://gcc.gnu.org/install/specific.html#sparc64-x-solaris2 > Just do CC=cc, you will get both a 32-bit and a 64-bit compiler. What > seems to be happening is that the build process assumes that the first > libiberty you get (the one built with the native compiler) is 32-bit code. Douglas has simply mixed 32-bit and 64-bit configuration. For the 32-bit compiler (sparc-sun-solaris2.9), CC=cc is fine. For the 64-bit compiler (sparc64-sun-solaris2.9), CC="cc -xarch=v9" is fine. -- Eric Botcazou