Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howtos:hardware:arm:gcc-9.x_aarch64_cross-compiler [2019/08/03 12:44 (UTC)]
exaga rewording
howtos:hardware:arm:gcc-9.x_aarch64_cross-compiler [2019/08/03 12:46 (UTC)] (current)
exaga [Building the gcc aarch64 cross-compiler] missing CFLAG
Line 157: Line 157:
 === Building binutils === === Building binutils ===
  
-First move back into the '​BUILD'​ directory and then create a build directory for binutils. You'll notice the various ​//build options// ​but as a quick explanation;​ '​--with-sysroot'​ basically tells binutils to enable '​sysroot'​ support in the cross-compiler by pointing it to a default empty directory, '​--target=aarch64-linux'​ is the target system type (arm64), and '​--disable-multilib'​ means that we only want binutils to work with the aarch64 instruction set and nothing else. +First move back into the '​BUILD'​ directory and then create a build directory for binutils. You'll notice the various ​CFLAGS ​but as a quick explanation;​ '​--with-sysroot'​ basically tells binutils to enable '​sysroot'​ support in the cross-compiler by pointing it to a default empty directory, '​--target=aarch64-linux'​ is the target system type (arm64), and '​--disable-multilib'​ means that we only want binutils to work with the aarch64 instruction set and nothing else. 
  
 <​code>​ <​code>​
Line 163: Line 163:
 mkdir build-binutils mkdir build-binutils
 cd build-binutils cd build-binutils
-../​binutils-2.32/​configure --prefix=/​tmp/​.gcc-cross --target=aarch64-linux --disable-multilib+../​binutils-2.32/​configure --prefix=/​tmp/​.gcc-cross --target=aarch64-linux ​--with-sysroot ​--disable-multilib
 make -j4  make -j4 
 make install make install

In Other Languages
QR Code
QR Code howtos:hardware:arm:gcc-9.x_aarch64_cross-compiler (generated for current page)