|
@@ -51,7 +51,7 @@ mkdir /var/tmp/build
|
|
|
# Build only the components of GCC that don't need glibc, see Step 3 of
|
|
|
# https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/
|
|
|
cd /var/tmp/build/gcc
|
|
|
- make -j[% c("buildconf/num_procs") %] all-gcc
|
|
|
+ make -j[% c("num_procs") %] all-gcc
|
|
|
make install-gcc
|
|
|
# Removing sys-include is intended to solve a limits.h issue
|
|
|
rm --recursive --force $distdir/[% c("var/crosstarget") %]/sys-include
|
|
@@ -66,7 +66,7 @@ mkdir /var/tmp/build
|
|
|
# designed to work with the GCC version we're using.
|
|
|
glibc-[% c("var/glibc_version") %]/configure --prefix=$distdir/[% c("var/crosstarget") %] --build=$MACHTYPE --host=[% c("var/crosstarget") %] --target=[% c("var/crosstarget") %] --with-headers=$distdir/[% c("var/crosstarget") %]/include --disable-multilib --disable-werror libc_cv_forced_unwind=yes
|
|
|
make install-bootstrap-headers=yes install-headers
|
|
|
- make -j[% c("buildconf/num_procs") %] csu/subdir_lib
|
|
|
+ make -j[% c("num_procs") %] csu/subdir_lib
|
|
|
install csu/crt1.o csu/crti.o csu/crtn.o $distdir/[% c("var/crosstarget") %]/lib
|
|
|
[% c("var/crosstarget") %]-gcc -nostdlib -nostartfiles -shared -x c /dev/null -o $distdir/[% c("var/crosstarget") %]/lib/libc.so
|
|
|
# stdio_lim.h is intended to solve a limits.h issue
|
|
@@ -75,13 +75,13 @@ mkdir /var/tmp/build
|
|
|
# Build compiler support library, see Step 5 of
|
|
|
# https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/
|
|
|
cd /var/tmp/build/gcc
|
|
|
- make -j[% c("buildconf/num_procs") %] all-target-libgcc
|
|
|
+ make -j[% c("num_procs") %] all-target-libgcc
|
|
|
make install-target-libgcc
|
|
|
|
|
|
# finish building glibc, see Step 6 of
|
|
|
# https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/
|
|
|
cd /var/tmp/build/glibc
|
|
|
- make -j[% c("buildconf/num_procs") %]
|
|
|
+ make -j[% c("num_procs") %]
|
|
|
make install
|
|
|
|
|
|
# We're done with glibc, we can now finish building gcc...
|
|
@@ -102,6 +102,6 @@ make install
|
|
|
ln -s gcc $distdir/bin/cc
|
|
|
cd /var/tmp/dist
|
|
|
[% c('tar', {
|
|
|
- tar_src => [ c('distdir') ],
|
|
|
+ tar_src => [ c('var/distdir') ],
|
|
|
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
|
|
|
}) %]
|