Skip to content

Instantly share code, notes, and snippets.

@a3f
Created July 23, 2017 05:37
Show Gist options
  • Save a3f/d2249665e35cfc51e5ebf60534c053e6 to your computer and use it in GitHub Desktop.
Save a3f/d2249665e35cfc51e5ebf60534c053e6 to your computer and use it in GitHub Desktop.
Building mipsel-elf-gcc on macOS
export PREFIX=/opt/cross/gcc-mips
export PATH=${PREFIX}/bin:${PATH}
../binutils-2.28/configure --target=mipsel-elf --prefix=$PREFIX
../gcc-7.1.0/configure --target=mipsel-elf --prefix=$PREFIX --without-headers --with-gnu-as --with-gnu-ld --disable-shared --enable-languages=c --disable-libssp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment