Skip to content

Commit

Permalink
Merge pull request #5 from luiztheblues/master
Browse files Browse the repository at this point in the history
  • Loading branch information
dslm4515 authored Apr 24, 2021
2 parents c5346ac + 9d60555 commit 8a4b629
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions 0-cross-tools/3-GCC-static
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

# GCC now requires the GMP, MPFR and MPC packages to build.
# Unpack them in-tree.
tar -xf ../pkgs/mpfr-4.1.0.tar.xz
xz -cd ../pkgs/mpfr-4.1.0.tar.xz | tar -xf -
mv -v mpfr-4.1.0 mpfr
tar -xf ../pkgs/gmp-6.2.1.tar.xz
xz -cd ../pkgs/gmp-6.2.1.tar.xz | tar -xf -
mv -v gmp-6.2.1 gmp
tar -xf ../pkgs/mpc-1.2.1.tar.gz
gunzip -cd ../pkgs/mpc-1.2.1.tar.gz | tar -xf -
mv -v mpc-1.2.1 mpc

# The GCC documentation recommends building GCC in
Expand Down
8 changes: 4 additions & 4 deletions 0-cross-tools/5-GCC-final
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# Build and install as cmlfs

# Additional sources to add as GCC requires them
tar -xf ../pkgs/mpfr-4.1.0.tar.xz
xz -cd ../pkgs/mpfr-4.1.0.tar.xz | tar -xf -
mv -v mpfr-4.1.0 mpfr
tar -xf ../pkgs/gmp-6.2.1.tar.xz
xz -cd ../pkgs/gmp-6.2.1.tar.xz | tar -xf -
mv -v gmp-6.2.1 gmp
tar -xf ../pkgs/mpc-1.2.1.tar.gz
gunzip -cd ../pkgs/mpc-1.2.1.tar.gz | tar -xf -
mv -v mpc-1.2.1 mpc

# Apply patches [from Alpine-linux]
or p in 0001-posix_memalign.patch \
for p in 0001-posix_memalign.patch \
0002-gcc-poison-system-directories.patch \
0003-Turn-on-Wl-z-relro-z-now-by-default.patch \
0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch \
Expand Down
3 changes: 1 addition & 2 deletions 0-cross-tools/7-Archive
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

# As root, backup the tool-chain for later use
cd $CMLFS
tar -Jcf crosstools-gcc-$(uname -m).tar.xz cross-tools
tar -cf - cross-tools | xz -c - > crosstools-gcc-$(uname -m).tar.xz

# Do not remove cross-tools at this time. It will
# be used to build /cgnutools and /llvmtools

0 comments on commit 8a4b629

Please sign in to comment.