From e7366bf41f68cfe07e9ea03fc4a398baecbae651 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 4 Feb 2017 09:41:13 +0000 Subject: Initial conversion from MediaWiki, 20170204 --- documentation/buildingforamigaos.mdwn | 57 +++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 documentation/buildingforamigaos.mdwn (limited to 'documentation/buildingforamigaos.mdwn') diff --git a/documentation/buildingforamigaos.mdwn b/documentation/buildingforamigaos.mdwn new file mode 100644 index 0000000..23fcb26 --- /dev/null +++ b/documentation/buildingforamigaos.mdwn @@ -0,0 +1,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: + + -- cgit v1.2.3