wip update
[nyanlinux.git] / x86 / cross-compiler.sh
blobb09a24561135a513e6049930715f5c51d37d6947
1 #!/bin/sh
3 # You must use an ultra complex ISO c++98 compiler to compile this C compiler.
4 # This is so toxic.
6 set -e
7 top_dir=$(readlink -f $(dirname $0))
8 top_src_dir=/root/nyanlinux/src
9 top_build_dir=/run/x86/build
10 install_dir=/run/x86/cross-compiler
11 x86_system_header_dir=/opt/steam/x86/devel/include
12 x86_system_lib_dir=/opt/steam/x86/devel/lib
13 jobs_n=11
15 printf "TOP_DIR=$top_dir\n"
16 printf "TOP_SRC_DIR=$top_src_dir\n"
17 printf "TOP_BUILD_DIR=$top_build_dir\n"
18 printf "INSTALL_DIR=$install_dir\n"
19 printf "X86_SYSTEM_HEADER_DIR=$x86_system_header_dir\n"
20 printf "X86_SYSTEM_LIB_DIR=$x86_system_lib_dir\n"
21 printf "USING $jobs_n PARALLEL JOBS"
22 . $top_dir/cross-compiler/gmp.sh
23 . $top_dir/cross-compiler/mpfr.sh
24 . $top_dir/cross-compiler/mpc.sh
25 . $top_dir/cross-compiler/binutils.sh
26 . $top_dir/cross-compiler/gcc.sh