Open EugeneChung opened 2 years ago
./configure --target=x86_64-pc-linux --prefix=/usr/local/cross --enable-64-bit-bfd --disable-shared --disable-nls
make configure-host
make LDFLAGS="-all-static"
sudo make install
./configure --target=x86_64-pc-linux --prefix=/usr/local/cross --disable-shared --disable-nls --enable-languages=c --without-headers --enable-multilib
make all-gcc
sudo make install-gcc
3 과 동일한 옵션으로 빌드 가능
binutils-2.37
./configure --target=x86_64-pc-linux --prefix=/usr/local/cross --enable-64-bit-bfd --disable-shared --disable-nls
make configure-host
make LDFLAGS="-all-static"
sudo make install
gcc-11.2.0
./configure --target=x86_64-pc-linux --prefix=/usr/local/cross --disable-shared --disable-nls --enable-languages=c --without-headers --enable-multilib
make configure-host
make all-gcc
sudo make install-gcc