aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-29 22:03:38 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-29 22:15:17 +0100
commite1b15993c26634818dce412be66a17f4b2dd6a3a (patch)
tree2dd5e24bd0cc14cb4e37b0155b88c1606512a139 /doc
parentaa2e19429c2e5ed42a21470c36635f6543b129fb (diff)
downloadchawan-e1b15993c26634818dce412be66a17f4b2dd6a3a.tar.gz
Update docs
Diffstat (limited to 'doc')
-rw-r--r--doc/build.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/build.md b/doc/build.md
index 53025ce1..be32ffe0 100644
--- a/doc/build.md
+++ b/doc/build.md
@@ -70,3 +70,25 @@ a limited set of C compilers. If you want to override the C compiler:
* `uninstall`: remove the `cha` binary and Chawan man pages
* `submodule`: download the submodules required for the browser to build
(for those of us who keep forgetting the corresponding git command :)
+
+## Cross-compiling
+
+[Apparently](https://todo.sr.ht/~bptato/chawan/37) it's possible.
+From user cutenice:
+
+> With the latest changes, I could simply run
+> `CFLAGS=-m32 LDFLAGS=-m32 FLAGS=--cpu:i386 make` to cross-compile!
+>
+> I don't know if I have any additional insight from today's
+> exploration.. On Arch I needed these things:
+>
+> - `nim-git` from the AUR
+> - the version available in the repos isn't quite new enough it
+> seems. I think it's related to #12 (at least i got similar looking
+> errors)
+> - enable the multilib repository in `/etc/pacman.conf`
+> - `pacman -S lib32-openssl lib32-libxcrypt lib32-ncurses lib32-libssh2`
+> - most of these packages pull packages like `lib32-gcc-libs` and
+> `lib32-glibc` which might be useful as well haha
+> - the rest can be eluded from the PKGBUILD in the
+> [AUR](https://aur.archlinux.org/packages/chawan-git)