Article View: gnu.gcc.help
Article #41890Re: Local and Cross-compiler versions on same machine
From: kai ruottu,tornio
Date: Sun, 11 Feb 1996 00:00
Date: Sun, 11 Feb 1996 00:00
24 lines
1747 bytes
1747 bytes
mavin@netcom.com (Edward Hooper @ Connector Distribution Corp) sanoo:
>I want to have GCC set up to compile for the local os (RedHat Linux 2.1) and
>also cross-compile to SCO Unix 3.2v4.2. How do I do this? Is it possible?
Yes, but I think you need separate cc1* files, headers and COFF-library...
Just make the cross-compiler, e.g. :
configure --host=i486-linux --target=i486-sco3.2v4.2 --with-gnu-as ...
The same binutils will go for both the Linux-native and SCO-cross, if they
have i386coff support too ('ld -V' will tell something about this)...
If you have SCO headers & libs, you doesn't need to make the gcc at all,
just get some gcc distribution for SCO, e.g. from Celestial... and run it
under Linux's ibcs2-emulator... I think these will install at:
/usr/local/i486-sco3.2v4.2 and /usr/local/lib/gcc-lib/i486-sco3.2v4.2 and
so don't disturb the native gcc at /usr/i486-linux... etc.
I remember you used to fight with glibc for SCO (... I have too, huh...),
so how's this project? Look at ftp.funet.fi /pub/386ix/sco/gcc for my ports.
(Once I succeeded to build gcc-2.6.3 & glibc-1.09 & libg++-2.6.2 and they
worked somehow, but having now troubles with getting libg++-2.7.1 to
work with gcc-2.7.2 & glibc-1.09...)
Technical Details
Message-ID:
<4fkoai$nlb@freenet.hut.fi>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<mavinDMF8BH.7IE@netcom.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e38432abd5a36493 X-Google-Attributes: gid11318c,public From: karuottu@mail.freenet.hut.fi (kai ruottu,tornio) Subject: Re: Local and Cross-compiler versions on same machine Date: 1996/02/11 Message-ID: <4fkoai$nlb@freenet.hut.fi> X-Deja-AN: 138902253 references: <mavinDMF8BH.7IE@netcom.com> organization: Freenet Finland reply-to: karuottu@mail.freenet.hut.fi (kai ruottu,tornio) newsgroups: gnu.gcc.help