User:Imate900/GDC Cross-Compiler-Part2: Difference between revisions
User:Imate900/GDC Cross-Compiler-Part2 (view source)
Revision as of 14:51, 9 November 2009
, 14 years agoChanged WIP to Stub: Author missing in action
(→gcc) |
m (Changed WIP to Stub: Author missing in action) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1:
== Step 2 - Native Compiler ==
{{Stub}}
Once you port [[Newlib]] to your OS (and install it to /usr/native), you may now do a native build of gdc to your OS.▼
▲Once you
Prepare for the build:
Line 8 ⟶ 10:
export HOST=i586-elf
cd /usr/src
mkdir build-native build-native/binutils build-native/gcc
=== binutils ===
Line 17 ⟶ 19:
=== gcc ===
cd /usr/src/build-native/gcc
/usr/src/gcc-x.x.x/configure --build=`./config.guess` --host=$HOST --target=$TARGET --prefix=$PREFIX --disable-nls \
--enable-languages=c,d,c++ --with-
make all-gcc
make install-gcc
Your native toolchain is now ready in /usr/native!
|