forked from bminor/binutils-gdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
30 lines (21 loc) · 1.21 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Download repo and within binutils-gdb:
mkdir cross-build
cd cross-build
../configure --enable-plugins --target=ppc-amigaos --prefix=/usr/local/amiga
make
h2. AmigaOS4 native builds
There are tow development branches targing native builds for AmigaOS4 based on the released binutils version 2.40
h3. Using newlib
The @nativeOS4-build-newlib@ branch is for the native AmigaOS4 version using *newlib* as c library, download the repo, checkout the branch, cd in, and:
mkdir native-build
cd native-build
CFLAGS="-mcrt=newlib -Wno-sign-compare" LDFLAGS="-lunix" ../configure --disable-gdb --disable-plugins --disable-sim --host=ppc-amigaos --target=ppc-amigaos --prefix=<absolut-path-to>/dist
make -j 4
make install
h3. Using clib4
The @nativeOS4-build-clib4@ branch is for the native AmigaOS4 version using latest beta10 (with sigsuspend) *clib4* as c library, download the repo, checkout the branch, cd in and:
mkdir native-build
cd native-build
CFLAGS="-mcrt=clib4 -Wno-sign-compare -gstabs -lpthread -athread=native" CXXFLAGS="-mcrt=clib4 -Wno-sign-compare -gstabs -lpthread -athread=native" ../configure --disable-plugins --disable-sim --host=ppc-amigaos --target=ppc-amigaos --prefix=<absolut-path-to>/dist
make -j 4
make install