Building crosstool-ng on CentOS-7

Crosstool-ng is a project that simplifies building of c/c++ toolchains for many hosts/targets.

For this particular project vendor only provided cygwin build, but I had to run the compiler on linux.

As toolchain was build using crosstool-ng-1.13.1, I simply check-outed that version of crosstool-ng with appropriate configuration and built it.

Links:

yum install ncurses-devel autoconf automake bison diffutils flex awk gperf help2man libncourses-devel make patch python-devel texinfo wget xz unzip file which -y
sudo yum group install "Development Tools" -y

git clone https://github.com/crosstool-ng/crosstool-ng 
cd crosstool-ng 
git checkout <crosstool-version>
make -j$(nproc)
make install

useradd -m ct-ng
su ct-ng

ct-ng menuconfig # Select appropriate tools, architecture, libc and compiler version.
ct-ng build -d

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *