forked from bminor/binutils-gdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Build Instructions
migthymax edited this page Jan 18, 2024
·
1 revision
Here in detailed is describe dhow to build a native binutils for ppc-amigaos.
The build is experimental build, using the clib4 c library and development envirnoment based upon a Dockerfile. Thus docker is a minimal requirement
All commands are assumed from a base directory, like ~/workspace:
- We need to check out the needed projects from AmigaLabs, the libs-port for
mpfrlibrary and of course the binutils branch
$ git clone https://github.com/AmigaLabs/libs-ports.git
$ git clone --branch nativeOS4-build-clib4 https://github.com/AmigaLabs/binutils-gdb.git - Next start up the docker env for compiling. Still being in the
~/workspacedirectory:
$ docker run -it --rm --name binutils_clib4 -v "${PWD}:/opt/code" -w /opt/code walkero/amigagccondocker:os4-gcc11-exp /bin/bash - Wait until the prompt appears for the started dockerfile. Than install the missing texinfo package
> apt-get update
> apt-get install texinfo - Now switch to the amidev user within the docker env.
> su amidev - Next compile and install the mpfr lib for clib4
> cd libs-port/mpfr
> make init
> make build LIBC=clib4
> cd mpfr-4.2.1
> make install - Now prepare the build env. for binutils
> cd ../../../binutils-gdb
> mkdir native-build
> cd native-build - Configure binutils to include the gdb in build:
> CFLAGS="-mcrt=clib4 -DHAVE_POSIX_SIGNALS" CXXFLAGS="-mcrt=clib4 -DHAVE_POSIX_SIGNALS" ../configure --disable-plugins --disable-sim --host=ppc-amigaos --target=ppc-amigaos --prefix=/opt/code/binutils-gdb/dist-clib4/ - Lets build:
> make
Optional pass -j n improve compile times