「インストール - GCC」の版間の差分

ナビゲーションに移動 検索に移動
320行目: 320行目:
  ../configure --prefix=<クロスコンパイラ向けGCCのインストールディレクトリ>  \
  ../configure --prefix=<クロスコンパイラ向けGCCのインストールディレクトリ>  \
               --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=h8300-elf \
               --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=h8300-elf \
               --enable-languages=c,c++ \
               --enable-languages=c \
               --disable-bootstrap --disable-nls --disable-shared --disable-libstdcxx-pch --enable-lto --enable-gold \
               --disable-bootstrap --disable-nls --disable-shared --enable-lto --enable-gold \
               --with-newlib \
               --with-newlib \
               --with-headers=/<上記でダウンロードしたNewLibのディレクトリ>/newlib/libc/include
               --with-headers=/<上記でダウンロードしたNewLibのディレクトリ>/newlib/libc/include
  make -j $(nproc) LANGUAGES="c c++" all-gcc
  make -j $(nproc)
  make -j $(nproc) LANGUAGES="c c++" install-gcc
  make install


<br>
<br>

案内メニュー