EugeneChung / MintOS64

MintOS64 project with CMake
Other
1 stars 0 forks source link

cross compile for binutils and gcc on macOS Monterey #4

Open EugeneChung opened 2 years ago

EugeneChung commented 2 years ago

binutils-2.37

  1. ./configure --target=x86_64-pc-linux --prefix=/usr/local/cross --enable-64-bit-bfd --disable-shared --disable-nls
  2. make configure-host
  3. make LDFLAGS="-all-static"
  4. sudo make install

gcc-11.2.0

  1. ./configure --target=x86_64-pc-linux --prefix=/usr/local/cross --disable-shared --disable-nls --enable-languages=c --without-headers --enable-multilib
  2. make configure-host
  3. make all-gcc
  4. sudo make install-gcc
EugeneChung commented 2 years ago