7 | | TODO: write me |
| 7 | == Prerequisites |
| 8 | |
| 9 | - GNU Make |
| 10 | - GCC (known to work: GCC 4.8.3, other versions may work as well though) |
| 11 | - GMP (unless `integer-simple` is used) |
| 12 | - libiconv-1.14 (compiled with `-D_THREAD_SAFE`) |
| 13 | - binutils (for `objdump` and `gas`) |
| 14 | - ...TODO... |
| 15 | |
| 16 | The [http://www.perzl.org/aix/ AIX Open Source Packages] repository is a convenient source to get the prerequisites. |
| 17 | |
| 18 | {{{#!rbox note |
| 19 | A consequence of this is that building a GHC crosscompiler targetting AIX is quite difficult. |
| 20 | }}} |
| 21 | Sadly (at the time of writing), `binutils`'s `ld` has only partial support for AIX. IBM's `ld` must be used. Also, IBM's `ar` is recommended over `binutils`'s. |
| 22 | |
| 23 | Having said that, IBM's `as` has deficiencies which cause problems when compiling GHC. So `gas` from `binutils` is recommended for building GHC. |
| 24 | |
| 25 | == Building |
| 26 | |
| 27 | |
| 28 | TODO: |