summaryrefslogtreecommitdiff
path: root/documentation/buildingforamigaos.mdwn
blob: 23fcb26414e78098f6481c1f3b5d09624a1d86ba (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[[!meta title="Documentation/BuildingForAmigaOS"]]
[[!meta author="Chris"]]
[[!meta date="2016-06-27T19:13:10Z"]]


[[!toc]]

Building NetSurf for AmigaOS 3.5+ (m68k-unknown-amigaos)
========================================================

Rough notes on how to build NetSurf for AmigaOS 3.5+. There may be an
easier way, but this works for me!

Building for AmigaOS 4.x (ppc-amigaos) is similar.

Toolchain
---------

Toolchain is built using something like this:

`git clone `[`git://git.netsurf-browser.org/toolchains.git`](git://git.netsurf-browser.org/toolchains.git)  
`cd ./toolchains/m68k-unknown-amigaos`  
`sudo make`  
`cd ../sdk`  
`sudo GCCSDK_INSTALL_CROSSBIN=/opt/netsurf/m68k-unknown-amigaos/cross/bin GCCSDK_INSTALL_ENV=/opt/netsurf/m68k-unknown-amigaos/env make`

Libraries
---------

Make/install buildsystem first!

Clone and build the libraries with:

`make HOST=m68k-unknown-amigaos`  
`sudo make HOST=m68k-unknown-amigaos install`

NetSurf
-------

Build NetSurf with

`make TARGET=amigaos3`

Building under Cygwin
=====================

Cygwin is a bit troublesome, as the toolchain setup is designed for
Debian 64-bit. Cygwin apparently works but there are two changes
required (I know nothing about these changes beyond what's here):

-   c-parse.in: I must replace two occurrences of YYLEX by yylex()
-   collect2.c: I must add 0666 as parameter of the open for
    redir\_handle.

There is a script to build NetSurf for AmigaOS3 under Cygwin here:
<https://github.com/DNADNL/NetScript>